:root {
  --bg: #07100d;
  --sidebar: #08130f;
  --panel: #0e1b17;
  --panel2: #12221c;
  --line: #20352d;
  --muted: #799187;
  --text: #f1f7f4;
  --green: #19d68a;
  --green2: #5ff0b5;
  --amber: #ffbd59;
  --red: #ff6868;
  --blue: #61a8ff;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.24);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background:
    radial-gradient(circle at 75% 5%, #10291f 0, transparent 34%), var(--bg);
  color: var(--text);
  font-family: "DM Sans", sans-serif;
  min-height: 100vh;
  font-size: 14px;
}
.ambient {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.16;
  pointer-events: none;
}
.ambient-a {
  width: 420px;
  height: 420px;
  background: #16d886;
  right: 4%;
  top: -150px;
}
.ambient-b {
  width: 300px;
  height: 300px;
  background: #087a52;
  left: 35%;
  bottom: -170px;
}
.app-shell {
  display: grid;
  grid-template-columns: 250px 1fr;
  min-height: 100vh;
  position: relative;
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  border-right: 1px solid #1c2e27;
  background: rgba(7, 18, 14, 0.86);
  backdrop-filter: blur(18px);
  padding: 30px 18px 18px;
  display: flex;
  flex-direction: column;
  z-index: 3;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 9px 30px;
}
.brand-mark {
  width: 42px;
  height: 42px;
  border: 1px solid #41e7a6;
  border-radius: 12px;
  display: grid;
  place-items: center;
  transform: rotate(45deg);
  background: #10291f;
  box-shadow: 0 0 28px rgba(25, 214, 138, 0.14);
}
.brand-mark span {
  font-size: 27px;
  color: var(--green2);
  font-weight: 500;
  transform: rotate(-45deg);
}
.brand strong {
  font: 800 16px Manrope;
  letter-spacing: 0.8px;
}
.brand strong i {
  font-style: normal;
  color: var(--green2);
}
.brand small {
  display: block;
  color: #577269;
  font-size: 8px;
  letter-spacing: 2px;
  margin-top: 4px;
}
.sidebar nav {
  flex: 1;
}
.sidebar nav p {
  font-size: 9px;
  letter-spacing: 1.7px;
  color: #526a61;
  margin: 29px 13px 11px;
}
.nav-item {
  width: 100%;
  border: 0;
  background: transparent;
  color: #82978f;
  padding: 11px 13px;
  border-radius: 9px;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 3px 0;
  font: 500 13px "DM Sans";
  cursor: pointer;
  transition: 0.2s;
}
.nav-item:hover {
  color: #dce9e3;
  background: #102019;
}
.nav-item.active {
  color: #fff;
  background: linear-gradient(90deg, #143326, #10221b);
  box-shadow: inset 2px 0 var(--green);
}
.nav-item .ico {
  font-size: 18px;
  width: 18px;
  color: #8ea199;
}
.nav-item.active .ico {
  color: var(--green2);
}
.nav-item b,
.nav-item em {
  margin-left: auto;
  font-size: 10px;
  background: #1b3028;
  border: 1px solid #2a4439;
  border-radius: 5px;
  padding: 2px 6px;
  font-style: normal;
}
.nav-item em {
  background: #3c2d18;
  color: #ffc36b;
  border-color: #554125;
}
.sidebar-foot {
  border-top: 1px solid #1c2e27;
  padding-top: 16px;
}
.server,
.profile {
  display: flex;
  align-items: center;
  padding: 9px;
  gap: 10px;
}
.server > i {
  width: 7px;
  height: 7px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 9px var(--green);
}
.server span,
.profile span {
  flex: 1;
}
.server strong,
.profile strong {
  display: block;
  font-size: 11px;
}
.server small,
.profile small {
  display: block;
  font-size: 9px;
  color: #657d73;
  margin-top: 2px;
}
.server > b {
  font-size: 10px;
  color: #688177;
}
.profile {
  margin-top: 7px;
  border-radius: 9px;
  background: #0d1d17;
  border: 1px solid #1b3028;
}
.profile button {
  border: 0;
  background: transparent;
  color: #6e897e;
  cursor: pointer;
}
.avatar {
  width: 31px;
  height: 31px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 9px;
  font-weight: 700;
  color: #dff9ee;
  background: linear-gradient(145deg, #225c45, #123024);
  border: 1px solid #327558;
}
.avatar-chief {
  background: linear-gradient(145deg, #199c68, #123024);
}
main {
  padding: 34px 42px 60px;
  min-width: 0;
  max-width: 1650px;
  width: 100%;
  margin: auto;
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 31px;
}
.eyebrow {
  font-size: 9px;
  letter-spacing: 1.8px;
  color: #526f63;
  margin: 0 0 9px;
}
h1 {
  font: 700 27px Manrope;
  margin: 0;
  letter-spacing: -0.5px;
}
header p#pageSubtitle {
  color: #70867d;
  margin: 6px 0 0;
  font-size: 12px;
}
.header-actions {
  display: flex;
  gap: 9px;
}
.icon-btn,
.ghost,
.primary {
  border: 1px solid #263d34;
  background: #0f1d18;
  color: #b6c7c0;
  border-radius: 8px;
  padding: 10px 14px;
  cursor: pointer;
  font-weight: 600;
  font-family: inherit;
  transition: 0.2s;
}
.icon-btn {
  width: 38px;
  height: 38px;
  padding: 0;
  font-size: 19px;
  position: relative;
}
.notification i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  position: absolute;
  right: 8px;
  top: 8px;
}
.primary {
  background: var(--green);
  border-color: var(--green);
  color: #052418;
  box-shadow: 0 5px 22px rgba(25, 214, 138, 0.14);
}
.primary:hover {
  background: #5cf0b4;
  transform: translateY(-1px);
}
.ghost:hover,
.icon-btn:hover {
  border-color: #3d5b4e;
  color: #fff;
}
.view {
  display: none;
  animation: fade 0.25s ease;
}
.view.active {
  display: block;
}
@keyframes fade {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 13px;
  margin-bottom: 14px;
}
.stat {
  background: linear-gradient(
    145deg,
    rgba(16, 31, 25, 0.96),
    rgba(11, 23, 18, 0.96)
  );
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 18px 16px;
  position: relative;
  overflow: hidden;
}
.stat.featured {
  background: linear-gradient(135deg, #173d2e, #10271e);
  border-color: #285a45;
}
.stat.featured:after {
  content: "";
  position: absolute;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: #28e79b;
  filter: blur(60px);
  right: -25px;
  top: -40px;
  opacity: 0.2;
}
.stat-icon {
  float: right;
  width: 32px;
  height: 32px;
  border: 1px solid #2a483b;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--green2);
  background: #122a20;
}
.stat-icon.alert {
  color: var(--amber);
  border-color: #503d24;
  background: #2b2116;
}
.stat > span {
  font-size: 9px;
  color: #789087;
  letter-spacing: 1.1px;
  display: block;
  margin: 4px 0 9px;
}
.stat > strong {
  display: block;
  font: 700 27px Manrope;
}
.stat > strong span {
  font-size: 15px;
  color: #6e867c;
  margin-left: 2px;
}
.stat > small {
  font-size: 9px;
  color: #71877e;
  display: block;
  margin-top: 5px;
}
.stat small i {
  display: inline-block;
  width: 5px;
  height: 5px;
  background: var(--green);
  border-radius: 50%;
  margin-right: 4px;
}
.stat small.amber {
  color: var(--amber);
}
.dash-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 14px;
}
.panel {
  background: linear-gradient(
    145deg,
    rgba(14, 28, 22, 0.96),
    rgba(10, 21, 17, 0.96)
  );
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.live-panel {
  grid-row: span 2;
}
.panel-head {
  padding: 18px 19px 13px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.panel h2,
.section-intro h2 {
  font: 700 15px Manrope;
  margin: 0;
}
.panel-head p,
.section-intro p {
  margin: 4px 0 0;
  color: #6c837a;
  font-size: 10px;
}
.live,
.status-pill {
  font-size: 8px;
  letter-spacing: 1px;
  border: 1px solid #266948;
  background: #102a20;
  color: #64eeb6;
  border-radius: 5px;
  padding: 5px 8px;
}
.live i {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
  margin-right: 4px;
}
.duty-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 19px;
  border-top: 1px solid #192d25;
}
.duty-row:hover {
  background: #10211a;
}
.duty-row .info {
  flex: 1;
}
.duty-row .info strong {
  display: block;
  font-size: 11px;
}
.duty-row .info small {
  display: block;
  color: #647b71;
  font-size: 9px;
  margin-top: 2px;
}
.duty-time {
  text-align: right;
}
.duty-time strong {
  display: block;
  font-size: 10px;
  color: #b5c7bf;
}
.duty-time small {
  font-size: 8px;
  color: #546c62;
}
.rank-dot {
  width: 7px;
  height: 7px;
  border-radius: 2px;
  transform: rotate(45deg);
  background: var(--green);
}
.text-btn {
  width: 100%;
  padding: 12px;
  border: 0;
  border-top: 1px solid #1a2e26;
  background: transparent;
  color: #61dfa9;
  font: 600 9px inherit;
  cursor: pointer;
}
.shift-panel {
  text-align: center;
}
.shift-panel .panel-head {
  text-align: left;
}
.status-pill {
  color: #869e94;
  background: #13221d;
  border-color: #294137;
}
.clock {
  font: 700 31px Manrope;
  letter-spacing: 2px;
  margin-top: 3px;
}
.clock span {
  color: #546b62;
  font-size: 20px;
}
.clock-label {
  font-size: 8px;
  letter-spacing: 1.2px;
  color: #577067;
  margin: 2px 0 16px;
}
.clock-button {
  width: calc(100% - 38px);
  margin: 0 19px;
  padding: 12px;
  border-radius: 9px;
  border: 1px solid #2b6c50;
  background: linear-gradient(135deg, #163f2e, #112a20);
  color: white;
  display: grid;
  grid-template-columns: 30px 1fr;
  grid-template-rows: 1fr 1fr;
  text-align: left;
  cursor: pointer;
}
.clock-button > span {
  grid-row: span 2;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--green);
  color: #063522;
  font-size: 9px;
}
.clock-button b {
  font-size: 10px;
}
.clock-button small {
  color: #729287;
  font-size: 8px;
}
.clock-button.stop {
  border-color: #703838;
  background: linear-gradient(135deg, #3c1e1e, #241515);
}
.clock-button.stop > span {
  background: var(--red);
}
.shift-summary {
  margin-top: 16px;
  border-top: 1px solid #1b3027;
  display: grid;
  grid-template-columns: 1fr 1fr;
  text-align: left;
}
.shift-summary span {
  font-size: 8px;
  color: #5f776d;
  padding: 10px 18px;
}
.shift-summary span + span {
  border-left: 1px solid #1b3027;
}
.shift-summary b {
  display: block;
  color: #d5e4de;
  font-size: 10px;
  margin-top: 3px;
}
.activity-panel .panel-head {
  padding-bottom: 8px;
}
.dots {
  background: transparent;
  border: 0;
  color: #60766e;
}
.timeline {
  padding: 0 19px 13px;
}
.timeline-row {
  display: grid;
  grid-template-columns: 8px 1fr auto;
  gap: 10px;
  padding: 8px 0;
  position: relative;
}
.timeline-row:after {
  content: "";
  position: absolute;
  width: 1px;
  height: 18px;
  background: #254037;
  left: 3px;
  top: 18px;
}
.timeline-row:last-child:after {
  display: none;
}
.timeline-row > i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4b685c;
  margin-top: 4px;
}
.timeline-row.green > i {
  background: var(--green);
}
.timeline-row.amber > i {
  background: var(--amber);
}
.timeline-row b {
  font-size: 9px;
  display: block;
}
.timeline-row small,
.timeline-row time {
  font-size: 8px;
  color: #61776e;
}
.toolbar,
.section-intro {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}
.section-intro {
  justify-content: space-between;
}
.search {
  height: 38px;
  min-width: 290px;
  display: flex;
  align-items: center;
  background: #0f1d18;
  border: 1px solid #263d34;
  border-radius: 8px;
  padding: 0 11px;
  gap: 8px;
}
.search input {
  border: 0;
  outline: 0;
  background: transparent;
  color: #eaf5f0;
  width: 100%;
}
select {
  height: 38px;
  background: #0f1d18;
  border: 1px solid #263d34;
  border-radius: 8px;
  color: #8fa59c;
  padding: 0 12px;
  font-family: inherit;
}
.toolbar .primary {
  margin-left: auto;
}
.table-panel {
  overflow: hidden;
}
table {
  width: 100%;
  border-collapse: collapse;
}
th {
  text-align: left;
  color: #5e776c;
  font-size: 8px;
  letter-spacing: 1.2px;
  font-weight: 600;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
}
td {
  padding: 12px 18px;
  border-bottom: 1px solid #192d25;
  color: #afc0b9;
  font-size: 10px;
}
tbody tr:hover {
  background: #10211a;
}
.member-cell {
  display: flex;
  align-items: center;
  gap: 9px;
}
.member-cell strong {
  color: #edf5f1;
  display: block;
}
.member-cell small {
  color: #60766d;
}
.badge {
  display: inline-flex;
  padding: 4px 7px;
  border-radius: 5px;
  border: 1px solid #294238;
  background: #14251e;
  font-size: 8px;
}
.badge.service {
  color: #62e8b2;
  border-color: #286e50;
  background: #102d22;
}
.badge.available {
  color: #70afff;
  border-color: #274c70;
  background: #101f2c;
}
.badge.off {
  color: #70847c;
}
.incident-num {
  color: var(--amber);
}
.row-actions button {
  border: 0;
  background: transparent;
  color: #6f867d;
  cursor: pointer;
  font-size: 17px;
}
.table-foot {
  display: flex;
  justify-content: space-between;
  padding: 11px 18px;
  color: #5d746a;
  font-size: 8px;
}
.stats-grid.mini {
  grid-template-columns: repeat(3, 1fr);
}
.moderation-layout {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 14px;
}
.tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 11px;
}
.tabs button {
  border: 1px solid #243b32;
  background: #0e1c17;
  color: #71877e;
  padding: 8px 12px;
  border-radius: 7px;
  font: 500 10px inherit;
  cursor: pointer;
}
.tabs button.active {
  background: #183126;
  color: #dff6ec;
  border-color: #325d4b;
}
.tabs b {
  background: #4e321d;
  color: #ffc16a;
  border-radius: 4px;
  padding: 1px 4px;
}
.incident {
  padding: 16px 17px;
  margin-bottom: 9px;
  display: grid;
  grid-template-columns: 38px 1fr auto;
  gap: 13px;
  align-items: start;
  background: linear-gradient(145deg, #101e19, #0b1713);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.incident-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: #302316;
  color: var(--amber);
  border: 1px solid #544023;
}
.incident.resolved .incident-icon {
  background: #10281f;
  color: var(--green);
  border-color: #28563f;
}
.incident h3 {
  margin: 1px 0 4px;
  font: 700 11px Manrope;
}
.incident p {
  margin: 0;
  color: #6e847a;
  font-size: 9px;
}
.incident small {
  display: block;
  margin-top: 9px;
  color: #536b61;
  font-size: 8px;
}
.incident .actions {
  display: flex;
  gap: 5px;
}
.incident .actions button {
  padding: 6px 8px;
}
.protocol {
  padding: 22px;
  height: max-content;
}
.protocol-icon {
  font-size: 27px;
  color: var(--green);
}
.protocol h3 {
  font: 700 13px Manrope;
  margin: 12px 0 6px;
}
.protocol p {
  font-size: 9px;
  color: #748a81;
  line-height: 1.5;
}
.protocol ol {
  padding-left: 18px;
  color: #8ca097;
  font-size: 9px;
  line-height: 2;
}
.protocol button {
  width: 100%;
}
.rank-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.rank-card {
  padding: 18px;
}
.rank-card .rank-top {
  display: flex;
  justify-content: space-between;
}
.rank-symbol {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #102c21;
  border: 1px solid #286147;
  color: var(--green2);
}
.rank-card h3 {
  font: 700 13px Manrope;
  margin: 16px 0 3px;
}
.rank-card p {
  font-size: 9px;
  color: #6c8278;
}
.rank-card ul {
  list-style: none;
  padding: 10px 0 0;
  margin: 10px 0 0;
  border-top: 1px solid #20332b;
}
.rank-card li {
  font-size: 9px;
  color: #82968e;
  margin: 7px 0;
}
.rank-card li:before {
  content: "✓";
  color: var(--green);
  margin-right: 7px;
}
.rank-meta {
  font-size: 8px;
  color: #60776d;
}
.audit-log {
  padding: 8px 20px;
}
.audit-row {
  display: grid;
  grid-template-columns: 145px 1fr 110px;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid #1c3028;
  font-size: 10px;
}
.audit-row time,
.audit-row small {
  color: #62786f;
}
.audit-row b {
  color: #d7e5df;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 8, 5, 0.72);
  backdrop-filter: blur(6px);
  display: none;
  place-items: center;
  z-index: 10;
}
.modal-backdrop.open {
  display: grid;
}
.modal {
  width: min(510px, calc(100vw - 30px));
  background: #0e1c17;
  border: 1px solid #2c473c;
  border-radius: 14px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  padding: 25px;
  position: relative;
  animation: modal 0.2s ease;
}
@keyframes modal {
  from {
    opacity: 0;
    transform: scale(0.97);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
.modal-close {
  position: absolute;
  right: 15px;
  top: 13px;
  border: 0;
  background: transparent;
  color: #789087;
  font-size: 22px;
  cursor: pointer;
}
.modal h2 {
  font: 700 18px Manrope;
  margin: 0 0 5px;
}
.modal > div > p {
  color: #71877e;
  font-size: 10px;
  margin: 0 0 21px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.field.full {
  grid-column: 1/-1;
}
.field label {
  font-size: 8px;
  letter-spacing: 1px;
  color: #738a80;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  background: #0a1511;
  border: 1px solid #294037;
  border-radius: 7px;
  padding: 10px;
  color: #e8f3ee;
  outline: none;
  font-family: inherit;
}
.field textarea {
  min-height: 80px;
  resize: vertical;
}
.field input:focus,
.field textarea:focus {
  border-color: #2f9a6d;
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 19px;
}
.danger {
  background: #3a1c1c !important;
  border-color: #6b3030 !important;
  color: #ffaaaa !important;
}
.toast {
  position: fixed;
  right: 25px;
  bottom: 25px;
  background: #132820;
  border: 1px solid #2e5a47;
  border-radius: 10px;
  padding: 12px 16px;
  display: flex;
  gap: 10px;
  align-items: center;
  box-shadow: var(--shadow);
  transform: translateY(90px);
  opacity: 0;
  transition: 0.3s;
  z-index: 20;
}
.toast.show {
  transform: none;
  opacity: 1;
}
.toast > span {
  color: var(--green);
  font-size: 18px;
}
.toast strong,
.toast small {
  display: block;
}
.toast strong {
  font-size: 10px;
}
.toast small {
  font-size: 8px;
  color: #789087;
  margin-top: 2px;
}
.hidden {
  display: none !important;
}
.staff-mode .admin-only {
  display: none !important;
}
@media (max-width: 1000px) {
  .app-shell {
    grid-template-columns: 78px 1fr;
  }
  .sidebar {
    padding: 25px 10px;
  }
  .brand > div:last-child,
  .nav-item:not(.active) {
    font-size: 0;
  }
  .brand {
    padding-left: 8px;
  }
  .brand-mark {
    width: 38px;
    height: 38px;
  }
  .nav-item {
    justify-content: center;
  }
  .nav-item .ico {
    font-size: 19px;
  }
  .nav-item b,
  .nav-item em,
  .sidebar nav p,
  .server span,
  .server b,
  .profile span,
  .profile button {
    display: none;
  }
  .server,
  .profile {
    justify-content: center;
  }
  .dash-grid {
    grid-template-columns: 1fr;
  }
  .live-panel {
    grid-row: auto;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 700px) {
  .app-shell {
    display: block;
  }
  .sidebar {
    position: fixed;
    bottom: 0;
    top: auto;
    width: 100%;
    height: 65px;
    display: block;
    padding: 7px 10px;
    border-right: 0;
    border-top: 1px solid #263b33;
  }
  .brand,
  .sidebar-foot,
  .sidebar nav p,
  .nav-item.admin-only {
    display: none;
  }
  .sidebar nav {
    display: flex;
  }
  .nav-item {
    font-size: 0 !important;
    margin: 0;
    padding: 8px;
  }
  .nav-item .ico {
    display: block;
  }
  .nav-item b,
  .nav-item em {
    display: none;
  }
  main {
    padding: 23px 15px 90px;
  }
  header {
    align-items: flex-start;
  }
  .header-actions .icon-btn {
    display: none;
  }
  .header-actions .primary {
    font-size: 0;
    padding: 10px;
  }
  .header-actions .primary:first-letter {
    font-size: 16px;
  }
  .stats-grid,
  .stats-grid.mini {
    grid-template-columns: 1fr 1fr;
  }
  .dash-grid,
  .moderation-layout,
  .rank-grid {
    grid-template-columns: 1fr;
  }
  .toolbar {
    flex-wrap: wrap;
  }
  .search {
    min-width: 100%;
  }
  .toolbar .primary {
    margin-left: 0;
  }
  table {
    min-width: 720px;
  }
  .table-panel {
    overflow: auto;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .field.full {
    grid-column: auto;
  }
}
.login-screen {
  position: fixed;
  inset: 0;
  z-index: 100;
  background:
    radial-gradient(circle at 65% 15%, #123b2b 0, transparent 38%), #07100d;
  display: grid;
  place-items: center;
  padding: 20px;
}
.login-screen[hidden],
#app[hidden] {
  display: none;
}
.login-card {
  width: min(390px, 100%);
  background: linear-gradient(145deg, #10231c, #0a1712);
  border: 1px solid #29483b;
  border-radius: 18px;
  padding: 34px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
}
.login-brand {
  padding: 0 0 30px;
}
.login-card h1 {
  font-size: 22px;
  margin-bottom: 8px;
}
.login-card > p {
  color: #779086;
  font-size: 12px;
  margin: 0 0 25px;
}
.login-card label {
  display: block;
  color: #6f897e;
  font-size: 9px;
  letter-spacing: 1px;
  margin: 13px 0;
}
.login-card input {
  display: block;
  width: 100%;
  margin-top: 7px;
  background: #08130f;
  border: 1px solid #294137;
  border-radius: 8px;
  padding: 12px;
  color: #fff;
  outline: none;
}
.login-card input:focus {
  border-color: #22b878;
}
.login-card > .primary {
  width: 100%;
  margin-top: 9px;
}
.login-card > a {
  display: block;
  text-align: center;
  color: #5bdca8;
  text-decoration: none;
  font-size: 10px;
  margin-top: 22px;
}
.login-error {
  display: block;
  color: #ff8c8c;
  text-align: center;
  margin-top: 12px;
}
.login-error a {
  color: #5ff0b5;
}
.discord-link {
  text-decoration: none;
  color: inherit;
  border-radius: 9px;
}
.button-link {
  text-decoration: none;
  display: inline-block;
}
.empty {
  padding: 25px;
  text-align: center;
  color: #6e857b;
}
.rules-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 14px;
}
.rules-card {
  padding: 24px;
}
.rules-card h3 {
  font: 700 15px Manrope;
  color: #e8f5ef;
  margin: 0 0 16px;
}
.rules-card h3:not(:first-child) {
  margin-top: 26px;
}
.rules-card ol {
  margin: 0;
  padding-left: 20px;
}
.rules-card li {
  color: #8da198;
  line-height: 1.6;
  margin: 11px 0;
}
.rules-card li b,
.rules-card dt {
  color: #dcebe5;
}
.rules-card dl {
  margin: 0;
}
.rules-card dt {
  font-weight: 700;
  margin-top: 14px;
}
.rules-card dd,
.rules-card p {
  color: #83998f;
  line-height: 1.6;
  margin: 4px 0 0;
}
.staff-mode .admin-only {
  display: none !important;
}
@media (max-width: 700px) {
  .rules-grid {
    grid-template-columns: 1fr;
  }
  .login-card {
    padding: 26px;
  }
  .sidebar nav {
    overflow-x: auto;
  }
  .sidebar .nav-item {
    min-width: 55px;
  }
}
