:root {
  --bg: #08090d;
  --panel: #11141a;
  --line: #2a2f3a;
  --text: #ebedf2;
  --muted: #a3a8b4;
  --red: #b73a48;
  --red-soft: rgba(183, 58, 72, 0.16);
  --ok: #17c964;
  --warn: #f5a524;
  --surface: rgba(14, 17, 23, 0.78);
  --surface-strong: rgba(18, 21, 29, 0.92);
  --border-soft: rgba(255, 255, 255, 0.08);
  --border-accent: rgba(183, 58, 72, 0.24);
  --shell-pad: clamp(16px, 1vw + 10px, 34px);
  --panel-pad: clamp(18px, 1vw + 14px, 36px);
  --section-pad: clamp(18px, 0.8vw + 12px, 30px);
  --control-height: clamp(44px, 0.6vw + 40px, 54px);
  --card-gap: clamp(12px, 0.55vw + 9px, 20px);
  --body-text: clamp(14px, 0.18vw + 13px, 17px);
  --small-text: clamp(12px, 0.12vw + 11px, 14px);
  --title-h2: clamp(18px, 0.45vw + 16px, 28px);
  --title-h3: clamp(16px, 0.4vw + 14px, 22px);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  min-height: 100%;
}

html {
  font-size: clamp(15px, 0.16vw + 14px, 18px);
}

body {
  position: relative;
  background: radial-gradient(1200px 700px at 15% -10%, rgba(183, 58, 72, 0.09), transparent 50%),
              radial-gradient(1100px 700px at 85% -10%, rgba(68, 82, 104, 0.1), transparent 45%),
              var(--bg);
  color: var(--text);
  font-family: "Manrope", "Segoe UI", sans-serif;
  line-height: 1.5;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.24;
  pointer-events: none;
}

.bg-glow {
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}

.bg-glow-left {
  left: -130px;
  top: -120px;
  background: rgba(183, 58, 72, 0.08);
}

.bg-glow-right {
  right: -140px;
  top: -140px;
  background: rgba(67, 78, 98, 0.08);
}

.shell {
  min-height: 100vh;
  display: grid;
  align-items: start;
  align-items: safe center;
  justify-items: center;
  padding: var(--shell-pad);
}

.panel {
  width: min(2200px, calc(100vw - var(--shell-pad) - var(--shell-pad)));
  border: 1px solid rgba(183, 58, 72, 0.22);
  background: linear-gradient(165deg, rgba(28, 18, 24, 0.72), rgba(11, 13, 18, 0.86));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 20px;
  padding: var(--panel-pad);
  box-shadow: 0 18px 80px rgba(0, 0, 0, 0.46), inset 0 0 0 1px rgba(255, 255, 255, 0.035);
}

.login-card {
  width: min(560px, calc(100vw - var(--shell-pad) - var(--shell-pad)));
}

.login-card:has(.first-login-form:not(.hidden)) {
  width: min(620px, calc(100vw - var(--shell-pad) - var(--shell-pad)));
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-lockup-login {
  align-items: flex-start;
}

.brand-logo {
  width: clamp(52px, 1.8vw + 44px, 78px);
  height: clamp(52px, 1.8vw + 44px, 78px);
  flex: 0 0 auto;
  object-fit: contain;
  border-radius: 16px;
  border: 1px solid rgba(214, 40, 57, 0.25);
  background: rgba(8, 10, 15, 0.72);
  padding: 7px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 14px 34px rgba(0, 0, 0, 0.26);
}

.app-shell {
  display: grid;
  gap: clamp(18px, 0.9vw + 8px, 28px);
}

.hidden {
  display: none !important;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  font-family: "Sora", sans-serif;
}

h1 {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: clamp(22px, 4.2vw, 36px);
  letter-spacing: 0.01em;
}

h2 {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: clamp(18px, 3.2vw, 24px);
}

.subtitle {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: clamp(15px, 0.2vw + 14px, 18px);
}

.section-sub {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: var(--body-text);
}

.status {
  margin-top: 16px;
  border: 1px solid;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 14px;
}

.status-warn {
  border-color: rgba(245, 165, 36, 0.5);
  color: #ffd78a;
  background: rgba(245, 165, 36, 0.08);
}

.status-ok {
  border-color: rgba(23, 201, 100, 0.5);
  color: #8af2bc;
  background: rgba(23, 201, 100, 0.08);
}

.status-err {
  border-color: rgba(214, 40, 57, 0.65);
  color: #ff9ca6;
  background: rgba(214, 40, 57, 0.12);
}

.setup-title {
  margin: 0;
  color: #f4f7fb;
  font-family: "Sora", sans-serif;
  font-size: 18px;
  font-weight: 800;
}

.setup-copy {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.pin-display {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.pin-display span {
  min-height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background: rgba(6, 8, 12, 0.82);
  color: #f4f7fb;
  font-size: 20px;
  font-weight: 900;
}

.pin-display span.is-filled {
  border-color: rgba(255, 23, 69, 0.72);
  background: rgba(255, 23, 69, 0.12);
}

.pin-actions {
  display: flex;
  justify-content: flex-end;
}

.pin-actions .btn-light {
  min-height: 40px;
}

.pin-pad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.pin-pad button {
  min-height: 48px;
  border-radius: 10px;
}

.stack {
  margin-top: 14px;
  display: grid;
  gap: 8px;
}

.discord-login-gate {
  margin-top: 14px;
  display: grid;
  gap: 8px;
}

.discord-login-gate small {
  color: var(--muted);
  text-align: center;
}

.discord-login-btn {
  min-height: var(--control-height);
  border: 1px solid rgba(122, 136, 255, 0.48);
  border-radius: 14px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #fff;
  background: #5865f2;
  font-family: "Sora", sans-serif;
  font-size: var(--small-text);
  font-weight: 700;
  text-decoration: none;
}

.discord-login-btn:hover {
  background: #4752c4;
}

.discord-login-btn svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.section-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

label {
  color: var(--muted);
  font-size: var(--small-text);
  font-weight: 700;
}

input {
  width: 100%;
  height: var(--control-height);
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: #0b0d11;
  color: var(--text);
  padding: 0 12px;
  font-size: var(--body-text);
  font-family: "Manrope", sans-serif;
  outline: none;
}

select {
  width: 100%;
  height: var(--control-height);
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: #0b0d11;
  color: var(--text);
  padding: 0 12px;
  font-size: var(--body-text);
  font-family: "Manrope", sans-serif;
  outline: none;
}

input:focus {
  border-color: rgba(214, 40, 57, 0.75);
  box-shadow: 0 0 0 3px var(--red-soft);
}

select:focus {
  border-color: rgba(214, 40, 57, 0.75);
  box-shadow: 0 0 0 3px var(--red-soft);
}

textarea {
  width: 100%;
  min-height: 120px;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: #0b0d11;
  color: var(--text);
  padding: 10px 12px;
  font-size: var(--body-text);
  font-family: "Manrope", sans-serif;
  line-height: 1.45;
  resize: vertical;
  outline: none;
}

textarea:focus {
  border-color: rgba(214, 40, 57, 0.75);
  box-shadow: 0 0 0 3px var(--red-soft);
}

.password-field {
  position: relative;
  display: grid;
}

.password-field input {
  padding-right: 52px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 7px;
  width: 38px;
  min-width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 10px;
  color: #9aa8b8;
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.035);
  box-shadow: none;
  transform: translateY(-50%);
}

.password-toggle:hover {
  color: #f4f7fb;
  border-color: rgba(255, 23, 69, 0.46);
  background: rgba(255, 23, 69, 0.12);
  box-shadow: none;
  transform: translateY(-50%);
}

.password-toggle svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
}

.password-toggle.is-visible {
  color: #ff9ca6;
  border-color: rgba(255, 23, 69, 0.58);
  background: rgba(255, 23, 69, 0.15);
}

button {
  height: var(--control-height);
  border: 1px solid rgba(183, 58, 72, 0.38);
  border-radius: 14px;
  padding: 0 clamp(14px, 0.4vw + 12px, 20px);
  min-width: 120px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #fff;
  background: linear-gradient(135deg, rgba(183, 58, 72, 0.26), rgba(80, 28, 38, 0.2));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 205, 214, 0.16);
  font-size: var(--small-text);
  font-family: "Sora", sans-serif;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

button:hover {
  transform: translateY(-1px);
  border-color: rgba(216, 95, 109, 0.5);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 124, 140, 0.12);
  background: linear-gradient(135deg, rgba(183, 58, 72, 0.34), rgba(80, 28, 38, 0.28));
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

button:disabled:hover {
  transform: none;
}

.btn-light {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(18, 21, 29, 0.82);
  box-shadow: none;
}

.btn-light:hover {
  border-color: rgba(183, 58, 72, 0.28);
  background: rgba(25, 28, 37, 0.94);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}

.btn-success {
  border-color: rgba(23, 201, 100, 0.42);
  background: linear-gradient(135deg, rgba(23, 201, 100, 0.3), rgba(7, 74, 44, 0.22));
  box-shadow: 0 12px 28px rgba(23, 201, 100, 0.16), inset 0 1px 0 rgba(164, 247, 196, 0.18);
}

.btn-success:hover {
  border-color: rgba(23, 201, 100, 0.56);
  background: linear-gradient(135deg, rgba(23, 201, 100, 0.4), rgba(7, 74, 44, 0.3));
  box-shadow: 0 14px 30px rgba(23, 201, 100, 0.2), inset 0 1px 0 rgba(164, 247, 196, 0.22);
}

.btn-success.is-starting,
.btn-success.is-starting:hover {
  opacity: 0.82;
  border-color: rgba(23, 201, 100, 0.38);
  background: linear-gradient(135deg, rgba(23, 201, 100, 0.18), rgba(7, 74, 44, 0.18));
  color: #b7f5cf;
  box-shadow: inset 0 0 0 1px rgba(164, 247, 196, 0.1);
}

.is-action-pending,
.is-action-pending:hover,
.is-muted-during-action,
.is-muted-during-action:hover,
.is-soft-disabled,
.is-soft-disabled:hover {
  opacity: 0.46;
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(17, 20, 27, 0.52);
  color: #a6adba;
  box-shadow: none;
  transform: none;
}

button.btn-success.is-soft-disabled,
button.btn-success.is-soft-disabled:hover,
.monitor-actions button.btn-success.is-soft-disabled,
.monitor-actions button.btn-success.is-soft-disabled:hover,
.card-actions button.btn-success.is-soft-disabled,
.card-actions button.btn-success.is-soft-disabled:hover {
  opacity: 0.42;
  border-color: rgba(23, 201, 100, 0.18);
  background: rgba(12, 32, 23, 0.48);
  color: #8ebaa0;
  box-shadow: none;
  transform: none;
}

.btn-danger {
  border-color: rgba(255, 92, 110, 0.6);
  background: linear-gradient(135deg, rgba(214, 40, 57, 0.62), rgba(88, 8, 17, 0.42));
  box-shadow: 0 14px 34px rgba(214, 40, 57, 0.26), inset 0 1px 0 rgba(255, 182, 191, 0.2);
}

.btn-danger:hover {
  border-color: rgba(255, 130, 145, 0.72);
  background: linear-gradient(135deg, rgba(214, 40, 57, 0.74), rgba(88, 8, 17, 0.54));
  box-shadow: 0 16px 36px rgba(214, 40, 57, 0.32), inset 0 1px 0 rgba(255, 197, 204, 0.2);
}

.btn-icon-only {
  min-width: 40px;
  width: 40px;
  padding: 0;
  gap: 0;
}

.ui-icon {
  width: clamp(16px, 0.3vw + 14px, 20px);
  height: clamp(16px, 0.3vw + 14px, 20px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 clamp(16px, 0.3vw + 14px, 20px);
  color: currentColor;
}

.ui-icon svg {
  width: 100%;
  height: 100%;
  display: block;
  fill: currentColor;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: clamp(14px, 0.7vw + 8px, 24px);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 19px;
  background: linear-gradient(145deg, rgba(14, 18, 24, 0.96), rgba(8, 11, 16, 0.98));
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.sidebar-toggle {
  display: none;
}

.online-sessions {
  position: relative;
}

.online-sessions-btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(52, 211, 153, 0.34);
  border-radius: 15px;
  padding: 0 15px;
  color: #d8fff0;
  background: linear-gradient(145deg, rgba(6, 38, 28, 0.92), rgba(7, 20, 17, 0.96));
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 8px 24px rgba(0, 0, 0, 0.18);
  transition: border-color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.online-sessions-btn:hover,
.online-sessions-btn[aria-expanded="true"] {
  border-color: rgba(52, 211, 153, 0.72);
  background: linear-gradient(145deg, rgba(7, 56, 39, 0.96), rgba(7, 27, 21, 0.98));
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.09), 0 12px 30px rgba(0, 0, 0, 0.24);
}

.online-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #42e885;
  box-shadow: 0 0 12px rgba(66, 232, 133, 0.8);
}

.online-sessions-label {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.online-sessions-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 40;
  width: min(440px, calc(100vw - 28px));
  border: 1px solid rgba(52, 211, 153, 0.3);
  border-radius: 20px;
  padding: 0;
  overflow: hidden;
  background: #080d0c;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.62), 0 0 0 1px rgba(52, 211, 153, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  isolation: isolate;
}

.online-sessions-menu::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 108px;
  z-index: 0;
  background: radial-gradient(circle at 12% 0%, rgba(52, 211, 153, 0.18), transparent 60%), linear-gradient(180deg, rgba(6, 78, 59, 0.14), transparent);
  pointer-events: none;
}

.online-sessions-head,
.online-sessions-description,
.online-sessions-list {
  position: relative;
  z-index: 1;
}

.online-sessions-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 17px 17px 8px;
  color: var(--text);
}

.online-sessions-title {
  display: grid;
  gap: 2px;
}

.online-sessions-title > span {
  color: #5ee4ad;
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.online-sessions-title > strong {
  font-family: "Sora", "Manrope", sans-serif;
  font-size: 1rem;
}

.online-sessions-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 9px;
  border: 1px solid rgba(52, 211, 153, 0.24);
  border-radius: 999px;
  color: #a7f3d0;
  background: rgba(6, 78, 59, 0.2);
  font-size: 0.72rem;
  font-weight: 900;
  white-space: nowrap;
}

.online-sessions-live-badge .online-dot {
  width: 7px;
  height: 7px;
}

.online-sessions-description {
  margin: 0;
  padding: 0 17px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.065);
  color: var(--muted);
  font-size: 0.76rem;
}

.online-sessions-list {
  display: grid;
  gap: 9px;
  max-height: 380px;
  overflow: auto;
  padding: 11px;
  scrollbar-color: rgba(52, 211, 153, 0.4) transparent;
}

.online-session-row {
  display: grid;
  gap: 11px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 14px;
  padding: 12px;
  background: #0e1314;
  transition: border-color 150ms ease, background 150ms ease, transform 150ms ease;
}

.online-session-row:hover {
  border-color: rgba(52, 211, 153, 0.22);
  background: #101817;
  transform: translateY(-1px);
}

.online-session-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.online-session-identity {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.online-session-avatar {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 12, 19, 0.72);
  overflow: hidden;
}

.online-session-avatar .mc-head-frame,
.online-session-avatar .mc-head-canvas,
.online-session-avatar .mc-head-surface {
  width: 32px;
  height: 32px;
}

.online-session-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.online-session-user {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--text);
  font-weight: 900;
}

.online-session-user span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
}

.online-session-account,
.online-session-discord {
  color: var(--muted);
  font-size: 0.74rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.session-ip-alert-wrap {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
}

.session-ip-status,
.session-ip-validate {
  appearance: none;
  margin: 0;
  min-height: 22px;
  border-radius: 999px;
  padding: 2px 7px;
  font: inherit;
  font-size: 0.61rem;
  font-weight: 900;
  cursor: pointer;
}

.session-ip-status {
  border: 1px solid rgba(251, 191, 36, 0.28);
  color: #d8bd73;
  background: rgba(120, 78, 6, 0.12);
}

.session-ip-validate {
  border: 1px solid rgba(52, 211, 153, 0.34);
  color: #a7f3d0;
  background: rgba(6, 78, 59, 0.22);
}

.session-ip-status:hover,
.session-ip-status:focus-visible,
.session-ip-validate:hover,
.session-ip-validate:focus-visible {
  border-color: rgba(52, 211, 153, 0.58);
  color: #d1fae5;
  outline: none;
}

.session-ip-validate:disabled {
  cursor: wait;
  opacity: 0.58;
}

.online-session-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.online-session-meta strong {
  color: #d1fae5;
}

.online-session-you {
  padding: 3px 7px;
  border: 1px solid rgba(52, 211, 153, 0.3);
  border-radius: 999px;
  color: #6ee7b7;
  background: rgba(6, 78, 59, 0.24);
  font-size: 0.63rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.online-session-network {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.online-session-network > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 27px;
  padding: 4px 8px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  color: #c5ccc9;
  background: rgba(2, 6, 5, 0.62);
  font-size: 0.68rem;
}

.online-session-network b {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.online-session-empty {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 16px;
  border: 1px dashed rgba(52, 211, 153, 0.24);
  border-radius: 13px;
  background: rgba(6, 78, 59, 0.08);
}

.online-session-empty > div {
  display: grid;
  gap: 2px;
}

.online-session-empty strong {
  font-size: 0.82rem;
}

.online-session-empty span:last-child {
  color: var(--muted);
  font-size: 0.72rem;
}

.online-session-current {
  border-color: rgba(52, 211, 153, 0.42);
  background: linear-gradient(135deg, rgba(6, 78, 59, 0.22), #0d1514 68%);
  box-shadow: inset 3px 0 0 rgba(52, 211, 153, 0.76);
}

.topbar-actions .online-sessions-btn {
  min-height: 46px;
  border: 0;
  border-radius: 13px;
  padding: 0 13px;
  background: transparent;
  box-shadow: none;
}

.topbar-actions .online-sessions-btn:hover,
.topbar-actions .online-sessions-btn[aria-expanded="true"] {
  background: rgba(6, 78, 59, 0.3);
  box-shadow: inset 0 0 0 1px rgba(52, 211, 153, 0.24);
}

.topbar-account {
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 5px;
  padding: 0 15px 0 11px;
  border-left: 1px solid rgba(255, 255, 255, 0.085);
}

.topbar-account-copy {
  min-width: 0;
  display: grid;
  gap: 1px;
}

.topbar-account-label {
  color: rgba(255, 255, 255, 0.38);
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  line-height: 1.1;
  text-transform: uppercase;
}

.topbar-account-name {
  max-width: 150px;
  overflow: hidden;
  color: #f3f4f6;
  font-size: 0.8rem;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar-avatar {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 40px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: rgba(4, 7, 10, 0.88);
  box-shadow: inset 0 0 0 2px rgba(214, 40, 57, 0.12);
}

.topbar-avatar .mc-head-frame {
  width: 32px;
  height: 32px;
}

.topbar-avatar .mc-head-canvas,
.topbar-avatar .mc-head-surface {
  width: 32px;
  height: 32px;
}

#logout-btn {
  min-height: 46px;
  margin-left: 0;
  padding: 0 13px;
  border: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.085);
  border-radius: 0 13px 13px 0;
  color: #d7dbe2;
  background: transparent;
  box-shadow: none;
}

#logout-btn:hover {
  color: #ffb4bd;
  background: rgba(183, 58, 72, 0.14);
}

.social-links {
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.social-links a {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: #cfd6e4;
  background: rgba(12, 15, 21, 0.76);
  transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.social-links a:hover {
  color: #fff;
  border-color: rgba(255, 120, 140, 0.46);
  background: rgba(183, 58, 72, 0.2);
  transform: translateY(-1px);
}

.social-links svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.layout {
  display: grid;
  grid-template-columns: minmax(250px, clamp(280px, 18vw, 360px)) minmax(0, 1fr);
  gap: clamp(16px, 0.9vw + 6px, 28px);
}

.sidebar {
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  background: rgba(8, 10, 15, 0.78);
  padding: clamp(14px, 0.7vw + 8px, 22px);
  display: grid;
  gap: clamp(10px, 0.45vw + 6px, 16px);
  align-content: start;
}

.sidebar-mobile-head,
.sidebar-group-label {
  display: none;
}

.topbar-title-mobile {
  display: none;
}

.topbar-title-mobile-wrap,
.topbar-state-mobile,
.topbar-uptime-mobile {
  display: none;
}

.nav-btn {
  height: clamp(42px, 0.65vw + 38px, 54px);
  width: 100%;
  min-width: 100%;
  justify-content: flex-start;
  text-align: left;
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(14, 17, 23, 0.86);
  box-shadow: none;
}

.nav-btn:hover {
  transform: none;
  border-color: rgba(183, 58, 72, 0.24);
  background: rgba(19, 22, 30, 0.96);
  box-shadow: none;
}

.nav-btn.is-active {
  border-color: rgba(216, 95, 109, 0.42);
  background: linear-gradient(135deg, rgba(183, 58, 72, 0.22), rgba(20, 24, 32, 0.9));
  box-shadow: inset 0 0 0 1px rgba(255, 180, 190, 0.06);
}

.nav-btn.nav-external {
  margin-top: clamp(4px, 0.35vw, 10px);
  border-color: rgba(92, 188, 139, 0.2);
}

.nav-btn.nav-external:hover {
  border-color: rgba(92, 188, 139, 0.4);
  background: rgba(13, 24, 20, 0.92);
}

.dynmap-nav {
  display: grid;
  gap: 8px;
}

.content {
  display: grid;
  gap: clamp(16px, 0.8vw + 8px, 24px);
}

.view {
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  background: rgba(9, 11, 16, 0.66);
  padding: var(--section-pad);
}

.view.is-view-entering {
  animation: viewFadeIn 260ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes viewFadeIn {
  from {
    opacity: 0;
    filter: blur(4px);
    transform: translateY(10px) scale(0.992);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0) scale(1);
  }
}

.stats-grid {
  margin-top: 14px;
  display: grid;
  gap: var(--card-gap);
  grid-template-columns: repeat(auto-fit, minmax(clamp(210px, 14vw, 290px), 1fr));
}

.stat-card {
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  background: var(--surface);
  padding: clamp(12px, 0.5vw + 9px, 18px);
}

.stat-label {
  margin: 0;
  color: var(--muted);
  font-size: var(--small-text);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.stat-value {
  margin: 8px 0 0;
  font-size: clamp(22px, 0.7vw + 18px, 30px);
  font-family: "Sora", sans-serif;
  line-height: 1.2;
}

.stat-value-sm {
  font-size: clamp(17px, 0.45vw + 14px, 22px);
}

.servers-layout {
  margin-top: 14px;
  display: grid;
  gap: clamp(14px, 0.9vw + 6px, 24px);
  grid-template-columns: minmax(290px, 430px) minmax(0, 1fr);
}

.console-single-layout {
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
  min-height: 0;
}

.server-grid {
  grid-template-columns: 1fr;
}

.card.is-selected {
  border-color: rgba(255, 120, 140, 0.55);
  box-shadow: 0 0 0 1px rgba(214, 40, 57, 0.4), 0 14px 30px rgba(214, 40, 57, 0.15);
}

.console-box {
  border: 1px solid rgba(214, 40, 57, 0.28);
  border-radius: 14px;
  background: rgba(5, 7, 10, 0.92);
  padding: clamp(14px, 0.6vw + 10px, 22px);
  display: grid;
  gap: clamp(12px, 0.45vw + 8px, 18px);
  min-width: 0;
  min-height: 0;
  grid-template-rows: auto auto minmax(0, 1fr) auto auto;
}

.console-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.console-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.console-power-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.console-power-actions button {
  height: clamp(38px, 0.5vw + 34px, 46px);
  min-width: 94px;
  font-size: var(--small-text);
}

.console-head h3 {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: var(--title-h3);
}

.console-output {
  margin: 0;
  min-height: 0;
  height: min(62vh, 720px);
  max-height: none;
  overflow-y: auto;
  overflow-x: hidden;
  border: 1px solid rgba(214, 40, 57, 0.24);
  border-radius: 10px;
  background: linear-gradient(180deg, #05070b, #020304);
  padding: clamp(12px, 0.55vw + 8px, 18px);
  color: #dce2ec;
  font-size: clamp(12px, 0.18vw + 11px, 15px);
  line-height: 1.5;
  font-family: "Consolas", "Courier New", monospace;
  white-space: pre-wrap;
  word-break: break-word;
  caret-color: #8af2bc;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 120, 140, 0.72) rgba(8, 10, 14, 0.88);
}

.console-output .console-line {
  display: block;
  min-height: 1.35em;
  transform-origin: left center;
  border-radius: 5px;
  padding: 0 7px;
  margin-left: -7px;
  will-change: opacity, transform, filter, background, box-shadow;
}

.console-output .console-line-new {
  animation: consoleLineIn 520ms cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: var(--line-delay, 0ms);
}

@keyframes consoleLineIn {
  from {
    opacity: 0;
    filter: blur(2px);
    transform: translateX(-34px) scale(0.97);
    color: #ffffff;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.03));
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.42);
    box-shadow:
      inset 3px 0 0 rgba(255, 255, 255, 0.72),
      0 0 14px rgba(255, 255, 255, 0.1);
  }
  45% {
    opacity: 1;
    filter: blur(0);
    transform: translateX(3px) scale(1.012);
    color: #ffffff;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02));
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.28);
    box-shadow:
      inset 3px 0 0 rgba(255, 255, 255, 0.44),
      0 0 10px rgba(255, 255, 255, 0.08);
  }
  72% {
    transform: translateX(0) scale(1);
    background: rgba(255, 255, 255, 0.04);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: translateX(0) scale(1);
    color: inherit;
    background: transparent;
    text-shadow: none;
    box-shadow: inset 0 0 0 rgba(255, 255, 255, 0);
  }
}

.console-output::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

@media (prefers-reduced-motion: reduce) {
  .view.is-view-entering,
  .console-output .console-line-new {
    animation: none;
  }
}

.console-output::-webkit-scrollbar-track {
  background: rgba(8, 10, 14, 0.88);
  border-left: 1px solid rgba(214, 40, 57, 0.12);
  border-radius: 999px;
}

.console-output::-webkit-scrollbar-thumb {
  border-radius: 999px;
  border: 2px solid rgba(8, 10, 14, 0.88);
  background: linear-gradient(180deg, rgba(255, 120, 140, 0.9), rgba(214, 40, 57, 0.72));
  box-shadow: inset 0 0 0 1px rgba(255, 199, 207, 0.18);
}

.console-output::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(255, 143, 160, 0.98), rgba(214, 40, 57, 0.86));
}

.console-output::-webkit-scrollbar-corner {
  background: rgba(8, 10, 14, 0.88);
}

.console-output .ansi-fg-black { color: #7a828f; }
.console-output .ansi-fg-red { color: #ff7b86; }
.console-output .ansi-fg-green { color: #78f0a8; }
.console-output .ansi-fg-yellow { color: #ffd56b; }
.console-output .ansi-fg-blue { color: #77b8ff; }
.console-output .ansi-fg-magenta { color: #f1a3ff; }
.console-output .ansi-fg-cyan { color: #6ce8ff; }
.console-output .ansi-fg-white { color: #dde4ef; }
.console-output .ansi-fg-bright-black { color: #a5aebb; }
.console-output .ansi-fg-bright-red { color: #ff9da4; }
.console-output .ansi-fg-bright-green { color: #a4f7c4; }
.console-output .ansi-fg-bright-yellow { color: #ffe18f; }
.console-output .ansi-fg-bright-blue { color: #9dceff; }
.console-output .ansi-fg-bright-magenta { color: #f8beff; }
.console-output .ansi-fg-bright-cyan { color: #9af1ff; }
.console-output .ansi-fg-bright-white { color: #ffffff; }

.console-form input {
  height: clamp(46px, 0.7vw + 40px, 56px);
  border-color: rgba(255, 120, 140, 0.28);
  background: rgba(9, 12, 18, 0.96);
  color: #f5f8ff;
  font-family: "Consolas", "Courier New", monospace;
  caret-color: #8af2bc;
}

.console-form input::placeholder {
  color: #7f8998;
}

.console-form input:disabled {
  color: #7f8998;
  background: rgba(13, 15, 20, 0.82);
}

.console-form.is-disabled {
  opacity: 0.72;
}

.console-form {
  position: relative;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  align-items: center;
}

.console-mobile-actions {
  display: none;
}

.console-form .btn-icon-only {
  width: clamp(46px, 0.7vw + 40px, 56px);
  min-width: clamp(46px, 0.7vw + 40px, 56px);
  height: clamp(46px, 0.7vw + 40px, 56px);
  border-radius: 14px;
  padding: 0;
}

#console-history-btn[aria-expanded="true"] {
  border-color: rgba(255, 105, 124, 0.82);
  color: #fff;
  background: linear-gradient(135deg, rgba(183, 58, 72, 0.48), rgba(80, 22, 31, 0.92));
  box-shadow: 0 12px 28px rgba(183, 58, 72, 0.24), inset 0 1px 0 rgba(255, 190, 200, 0.18);
}

.console-history-menu {
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  z-index: 22;
  width: min(520px, calc(100vw - 32px));
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(8, 9, 12, 0.98);
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.console-history-list {
  display: grid;
  max-height: 340px;
  overflow: auto;
}

.console-history-item {
  width: 100%;
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: 4px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 8px 12px;
  color: #f4f7ff;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.console-history-item:hover,
.console-history-item:focus-visible {
  background: rgba(255, 255, 255, 0.055);
  outline: none;
}

.console-history-command {
  min-width: 0;
  overflow: visible;
  white-space: normal;
  overflow-wrap: anywhere;
  font-family: "Consolas", "Courier New", monospace;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.35;
}

.console-history-meta {
  color: #8f98a8;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.2;
  white-space: normal;
}

.console-history-empty {
  padding: 14px;
  color: var(--muted);
  font-size: var(--small-text);
}

.console-history-clear {
  width: 100%;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  color: #a8b1c1;
  background: rgba(255, 255, 255, 0.035);
  font: inherit;
  font-size: var(--small-text);
  font-weight: 800;
  cursor: pointer;
}

.console-history-clear:hover {
  color: #ffc7cf;
  background: rgba(214, 40, 57, 0.1);
}

.console-filter-card {
  width: min(860px, calc(100vw - 28px));
}

.console-filter-form {
  display: grid;
  gap: 8px;
}

.console-filter-form label {
  color: #c5cfdf;
  font-size: 0.76rem;
  font-weight: 800;
}

.console-filter-add-row,
.console-auto-message-add-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.console-filter-add-row input,
.console-auto-message-add-row input {
  height: 36px;
  border-radius: 9px;
  font-size: 0.78rem;
}

.console-filter-add-row button,
.console-auto-message-add-row button {
  min-height: 36px;
  padding-inline: 12px;
  border-radius: 9px;
  font-size: 0.76rem;
}

.console-filter-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 5px;
  max-height: 180px;
  overflow-x: hidden;
  overflow-y: auto;
  border: 1px solid rgba(108, 232, 255, 0.16);
  border-radius: 10px;
  padding: 6px;
  background: rgba(3, 5, 9, 0.72);
  scrollbar-color: rgba(108, 232, 255, 0.72) rgba(5, 8, 13, 0.82);
  scrollbar-width: thin;
}

.console-filter-list::-webkit-scrollbar {
  width: 10px;
  height: 0;
}

.console-filter-list::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(5, 8, 13, 0.82);
}

.console-filter-list::-webkit-scrollbar-thumb {
  border: 2px solid rgba(5, 8, 13, 0.82);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(108, 232, 255, 0.92), rgba(45, 103, 179, 0.9));
}

.console-filter-list::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(145, 240, 255, 0.98), rgba(74, 147, 230, 0.96));
}

.console-filter-item {
  min-height: 32px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9px;
  padding: 4px 4px 4px 8px;
  background: rgba(255, 255, 255, 0.035);
}

.console-filter-item input[data-console-filter-edit],
.console-filter-item input[data-console-auto-message-edit] {
  min-width: 0;
  width: 100%;
  height: 24px;
  border: 0;
  border-radius: 7px;
  padding: 0;
  background: transparent;
  color: #f5f8ff;
  box-shadow: none;
  font-family: "Manrope", sans-serif;
  font-size: 0.74rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.console-filter-item input[data-console-filter-edit]:focus,
.console-filter-item input[data-console-auto-message-edit]:focus {
  padding: 0 6px;
  border: 1px solid rgba(108, 232, 255, 0.48);
  background: rgba(5, 12, 20, 0.82);
  box-shadow: 0 0 0 2px rgba(108, 232, 255, 0.12);
}

.console-filter-item button {
  width: 26px;
  min-width: 26px;
  height: 26px;
  border-radius: 8px;
  color: #cbd6e8;
}

.console-filter-empty {
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 9px;
  padding: 8px;
  color: var(--muted);
  font-size: 0.74rem;
}

.console-automation-block {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(108, 232, 255, 0.18);
  border-radius: 10px;
  padding: 8px;
  background:
    linear-gradient(180deg, rgba(45, 103, 179, 0.12), rgba(255, 255, 255, 0.02)),
    rgba(3, 5, 9, 0.62);
}

.console-automation-head strong {
  display: block;
  color: #f5f8ff;
  font-family: "Sora", sans-serif;
  font-size: 0.86rem;
}

.console-automation-head code {
  color: #6ce8ff;
  font-family: "Consolas", "Courier New", monospace;
}

.console-automation-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.console-automation-grid label {
  display: grid;
  gap: 5px;
}

.console-automation-target {
  min-height: 36px;
  display: grid;
  align-content: center;
  gap: 2px;
  border: 1px solid rgba(108, 232, 255, 0.16);
  border-radius: 9px;
  padding: 5px 9px;
  background: rgba(8, 10, 15, 0.74);
}

.console-automation-target span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
}

.console-automation-target strong {
  min-width: 0;
  overflow: hidden;
  color: #f5f8ff;
  font-family: "Sora", sans-serif;
  font-size: 0.76rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.console-automation-block input,
.console-automation-block select {
  height: 36px;
  border-radius: 9px;
  font-size: 0.78rem;
}

.console-automation-block textarea {
  min-height: 48px;
  border-radius: 9px;
  font-family: "Consolas", "Courier New", monospace;
  font-size: 0.76rem;
}

.console-automation-switch {
  justify-self: start;
  min-height: 34px;
  padding: 6px 8px;
  font-size: 0.76rem;
}

.console-filter-form .modal-actions {
  justify-content: flex-end;
}

.server-management-view {
  position: relative;
  min-height: min(980px, calc(100vh - 190px));
  padding-bottom: 88px;
}

.server-management-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 14px;
}

.server-management-titlebar {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
}

.server-title-line {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex-wrap: wrap;
}

.server-title-line h2 {
  min-width: 0;
}

.server-title-status {
  margin-top: 0;
  padding: 4px 9px;
  font-size: 0.74rem;
  line-height: 1;
}

.server-uptime {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
  white-space: nowrap;
}

.server-back-btn {
  min-width: 0;
  height: 46px;
  border-color: rgba(255, 105, 124, 0.72);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(183, 58, 72, 0.38), rgba(70, 22, 30, 0.78));
  color: #fff;
  box-shadow: 0 12px 26px rgba(183, 58, 72, 0.22), inset 0 1px 0 rgba(255, 190, 200, 0.2);
}

.server-back-btn:hover {
  border-color: rgba(255, 140, 156, 0.9);
  background: linear-gradient(135deg, rgba(208, 69, 86, 0.5), rgba(96, 28, 39, 0.88));
}

.server-management-head h2 {
  font-size: clamp(22px, 1vw + 18px, 34px);
}

.server-management-head .section-sub {
  display: flex;
  align-items: center;
  gap: 8px;
}

.server-management-head .tag {
  margin-top: 0;
  text-transform: none;
}

.server-management-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.server-management-actions button {
  min-width: auto;
}

.server-management-view [data-tooltip],
.server-floating-controls [data-tooltip] {
  position: relative;
}

.server-management-view [data-tooltip]::after,
.server-floating-controls [data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  z-index: 20;
  width: max-content;
  max-width: 260px;
  transform: translateX(-50%) translateY(4px);
  pointer-events: none;
  opacity: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(12, 14, 18, 0.98);
  color: #f4f6fb;
  padding: 8px 10px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.36);
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0;
  text-transform: none;
  white-space: normal;
  transition: opacity 0.12s ease, transform 0.12s ease;
}

.server-management-view [data-tooltip]::before,
.server-floating-controls [data-tooltip]::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(100% + 4px);
  z-index: 21;
  width: 10px;
  height: 10px;
  transform: translateX(-50%) rotate(45deg);
  pointer-events: none;
  opacity: 0;
  background: rgba(12, 14, 18, 0.98);
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  transition: opacity 0.12s ease;
}

.server-management-view [data-tooltip]:hover::after,
.server-management-view [data-tooltip]:focus-visible::after,
.server-management-view [data-tooltip]:hover::before,
.server-management-view [data-tooltip]:focus-visible::before,
.server-floating-controls [data-tooltip]:hover::after,
.server-floating-controls [data-tooltip]:focus-visible::after,
.server-floating-controls [data-tooltip]:hover::before,
.server-floating-controls [data-tooltip]:focus-visible::before {
  opacity: 1;
}

.server-management-view [data-tooltip]:hover::after,
.server-management-view [data-tooltip]:focus-visible::after,
.server-floating-controls [data-tooltip]:hover::after,
.server-floating-controls [data-tooltip]:focus-visible::after {
  transform: translateX(-50%) translateY(0);
}

.server-console-panel {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(3, 4, 6, 0.88);
  overflow: hidden;
}

.server-console-panel .console-output {
  height: clamp(420px, 47vh, 680px);
  border: 0;
  border-radius: 0;
  background: #050606;
  font-size: clamp(11px, 0.12vw + 10px, 13px);
  line-height: 1.35;
}

.server-console-panel .console-form {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px;
  background: rgba(5, 6, 8, 0.96);
}

.server-console-panel .console-form input {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.server-files-panel {
  position: relative;
  min-height: clamp(760px, 78vh, 1120px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  gap: 14px;
}

.server-files-panel.is-editor-open .files-sidebar {
  display: none;
}

.files-search-popover {
  position: absolute;
  top: 12px;
  left: 50%;
  z-index: 18;
  width: min(560px, calc(100% - 28px));
  height: 48px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(215, 180, 106, 0.44);
  border-radius: 18px;
  background: rgba(5, 6, 8, 0.98);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.36), 0 0 0 3px rgba(215, 180, 106, 0.08);
  padding: 0 8px 0 14px;
}

.files-search-popover .ui-icon {
  width: 20px;
  height: 20px;
  color: #b5c1d8;
  flex: 0 0 auto;
}

.files-search-popover input {
  height: 100%;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
  color: #f4f6fb;
}

.files-search-popover input:focus {
  box-shadow: none;
}

.files-search-popover button {
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 12px;
}

.files-sidebar,
.files-editor-shell {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(4, 5, 7, 0.94);
  overflow: hidden;
}

.files-sidebar {
  display: grid;
  grid-template-rows: auto auto auto minmax(360px, 1fr);
}

.files-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px;
}

.files-toolbar-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}

.files-toolbar button,
.files-toolbar-actions button {
  min-width: 0;
  height: 42px;
  border-radius: 999px;
}

.files-toolbar-actions button:not(.btn-icon-only) {
  padding-inline: 16px;
}

.files-toolbar-actions button:not(.btn-icon-only):nth-child(n + 3) {
  border-color: rgba(215, 180, 106, 0.38);
  background: rgba(132, 110, 71, 0.74);
  color: #fff8ea;
}

.files-toolbar-actions button:not(.btn-icon-only):nth-child(n + 3):hover {
  border-color: rgba(235, 203, 138, 0.66);
  background: rgba(151, 126, 79, 0.86);
}

.files-breadcrumb {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(2, 3, 5, 0.7);
  padding: 4px 8px;
}

.files-crumb {
  min-width: 0;
  height: 30px;
  padding: 0 4px;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: #f4f6fb;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.files-crumb:hover,
.files-crumb.is-current {
  color: #fff;
  background: transparent;
}

.files-search {
  margin: 4px 14px 12px;
  height: 46px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(5, 6, 8, 0.94);
  color: #92a0b5;
  padding: 0 14px;
}

.files-search .ui-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  color: #8fa0bc;
}

.files-search input {
  height: 100%;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
  color: #dfe6f3;
  font-size: 14px;
}

.files-search input:focus {
  box-shadow: none;
}

.files-search:focus-within {
  border-color: rgba(215, 180, 106, 0.58);
  box-shadow: 0 0 0 3px rgba(215, 180, 106, 0.1);
}

.files-table-head {
  height: 40px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) minmax(90px, 120px) minmax(150px, 220px) 48px;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #90a0c6;
  font-family: "Sora", sans-serif;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.files-list {
  overflow-x: hidden;
  overflow-y: auto;
}

.files-row {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) minmax(90px, 120px) minmax(150px, 220px) 48px;
  align-items: center;
  gap: 12px;
  min-height: 45px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: transparent;
  color: #f2f4f8;
  cursor: pointer;
}

.files-row:hover,
.files-row.is-selected {
  background: rgba(255, 255, 255, 0.035);
}

.files-row.is-checked {
  background: rgba(215, 180, 106, 0.07);
}

.files-row.is-drop-target {
  background: rgba(215, 180, 106, 0.16);
  box-shadow: inset 3px 0 0 rgba(215, 180, 106, 0.88);
}

.files-row.is-drop-target .files-row-name,
.files-row.is-drop-target .files-row-icon {
  color: #ffe2a4;
}

.files-row-main {
  min-width: 0;
  width: 100%;
  height: 44px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #f4f6fb;
  justify-content: flex-start;
  text-align: left;
  box-shadow: none;
  padding: 0;
}

.files-select-all,
.files-row-select,
.files-row-select-spacer {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
}

.files-select-all,
.files-row-select {
  cursor: pointer;
}

.files-select-all input,
.files-row-select input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.files-select-all span,
.files-row-select span {
  width: 16px;
  height: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  background: rgba(8, 9, 12, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.files-select-all input:checked + span,
.files-select-all input:indeterminate + span,
.files-row-select input:checked + span {
  border-color: rgba(215, 180, 106, 0.72);
  background: #7b6a4f;
}

.files-select-all input:checked + span::after,
.files-row-select input:checked + span::after {
  content: "";
  display: block;
  width: 8px;
  height: 4px;
  margin: 4px 0 0 3px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}

.files-select-all input:indeterminate + span::after {
  content: "";
  display: block;
  width: 8px;
  height: 2px;
  margin: 6px 0 0 3px;
  background: #fff;
  border-radius: 2px;
}

.files-row-main:hover {
  background: transparent;
}

.files-row-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  color: #85785f;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.files-row-icon-directory {
  color: #8a7b5f;
}

.files-row-icon-archive {
  color: #d1a756;
}

.files-row-icon-jar {
  color: #f06a3d;
}

.files-row-icon-config {
  color: #77c7a4;
}

.files-row-icon-code {
  color: #8fb4ff;
}

.files-row-icon-image {
  color: #d184d8;
}

.server-files-panel.is-dragging .files-sidebar,
.server-files-panel.is-dragging .files-editor-shell {
  border-color: rgba(215, 180, 106, 0.72);
  box-shadow: inset 0 0 0 1px rgba(215, 180, 106, 0.22), 0 0 0 3px rgba(215, 180, 106, 0.08);
}

.server-files-panel.is-dragging .files-list,
.server-files-panel.is-dragging .files-editor {
  background: rgba(215, 180, 106, 0.04);
}

.files-row-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.files-row-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 800;
}

.files-row-meta {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #9eb1dc;
  font-size: 12px;
  text-align: right;
}

.files-row-more {
  justify-self: end;
  width: 56px;
  height: 34px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #8e97a8;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 1px;
  text-align: center;
  box-shadow: none;
  cursor: pointer;
}

button.files-row-more:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #f4f6fb;
}

.files-row-actions-spacer {
  justify-self: end;
  width: 56px;
  height: 1px;
}

.files-action-menu {
  position: fixed;
  z-index: 5000;
  min-width: 168px;
  display: grid;
  gap: 4px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 6px;
  background: rgba(8, 10, 15, 0.98);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.44);
}

.files-action-menu button {
  width: 100%;
  height: 36px;
  justify-content: flex-start;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #f4f6fb;
  box-shadow: none;
  padding: 0 10px;
  font-size: 13px;
}

.files-action-menu button:hover {
  background: rgba(255, 255, 255, 0.07);
}

.files-action-menu button.is-danger {
  color: #ff9da4;
}

.files-empty {
  padding: 18px;
  color: #8e97a8;
}

.files-editor-shell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-height: clamp(680px, calc(100vh - 250px), 980px);
  border-color: rgba(212, 34, 55, 0.16);
  background: #050609;
}

.files-editor-topbar {
  min-height: 66px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  background: linear-gradient(180deg, rgba(14, 16, 22, 0.98), rgba(7, 8, 12, 0.98));
}

.files-editor-titleblock {
  min-width: 0;
  display: grid;
  gap: 3px;
}

#files-editor-back-btn {
  min-width: 0;
  height: 42px;
  border-radius: 12px;
}

.files-editor-titleblock strong,
.files-editor-titleblock span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.files-editor-titleblock span {
  color: #8e97a8;
  font-size: 12px;
}

.files-editor-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
}

.files-codex-btn {
  border-color: rgba(24, 212, 125, 0.32);
  color: #dffbec;
  background: rgba(24, 212, 125, 0.08);
}

.files-codex-btn[aria-expanded="true"] {
  border-color: rgba(24, 212, 125, 0.62);
  background: rgba(24, 212, 125, 0.14);
}

.files-codex-btn .ui-icon {
  color: #18d47d;
}

.files-codex-panel {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  border-bottom: 1px solid rgba(24, 212, 125, 0.18);
  background: linear-gradient(90deg, rgba(24, 212, 125, 0.11), rgba(7, 8, 12, 0.98));
}

.files-codex-panel > div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.files-codex-panel strong {
  color: #dffbec;
  font-family: "Sora", sans-serif;
  font-size: 0.88rem;
}

.files-codex-panel span {
  min-width: 0;
  overflow: hidden;
  color: #94a3b8;
  font-size: 0.78rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.files-codex-panel button {
  min-height: 34px;
  padding-inline: 12px;
  border-radius: 10px;
}

.files-editor {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: #050609;
}

.files-editor-shell .section-sub {
  margin: 0;
  padding: 10px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(5, 6, 8, 0.96);
}

.machine-console-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.42fr) minmax(0, 0.58fr);
  gap: 14px;
  align-items: stretch;
}

.machine-console-panel {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(7, 8, 12, 0.88);
  overflow: hidden;
}

.machine-console-controls {
  padding: 14px;
  display: grid;
  gap: 14px;
}

.machine-console-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px;
  gap: 10px;
}

.machine-console-toolbar label,
.machine-console-form {
  min-width: 0;
  display: grid;
  gap: 7px;
}

.machine-console-toolbar span,
.machine-console-form label {
  color: #aeb7c7;
  font-size: 0.78rem;
  font-weight: 800;
}

.machine-console-toolbar input,
.machine-console-toolbar select,
.machine-console-form textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 10px;
  background: #050609;
  color: #f3f6fb;
  font: 800 0.88rem/1.45 "Manrope", sans-serif;
}

.machine-console-toolbar input,
.machine-console-toolbar select {
  height: 40px;
  padding: 0 11px;
}

.machine-console-form textarea {
  min-height: 118px;
  resize: vertical;
  padding: 11px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.machine-codex-form {
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.machine-console-actions {
  display: flex;
  justify-content: flex-end;
}

.machine-console-actions button {
  min-height: 42px;
}

.machine-console-output-panel {
  min-height: 560px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.machine-console-output-head {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(14, 16, 22, 0.96), rgba(7, 8, 12, 0.96));
}

.machine-console-output-head strong {
  min-width: 0;
  color: #f3f6fb;
  font-family: "Sora", sans-serif;
}

.machine-console-output-head > div {
  display: flex;
  gap: 8px;
}

.machine-console-output {
  min-height: 0;
  margin: 0;
  padding: 14px;
  overflow: auto;
  background: #030407;
  color: #dce8f7;
  font: 700 0.82rem/1.55 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  white-space: pre-wrap;
  word-break: break-word;
}

.network-diagnostics-panel {
  margin-top: 14px;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(7, 8, 12, 0.9);
  overflow: hidden;
}

.network-diagnostics-head {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(16, 18, 25, 0.96), rgba(7, 8, 12, 0.96));
}

.network-diagnostics-head strong {
  display: block;
  color: #f3f6fb;
  font-family: "Sora", sans-serif;
}

.network-diagnostics-head p {
  margin: 4px 0 0;
  color: #aeb7c7;
  font-size: 0.78rem;
  font-weight: 800;
}

.network-diagnostics-actions {
  flex: 0 0 auto;
  display: flex;
  gap: 8px;
}

.network-diagnostics-actions select {
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 10px;
  background: #050609;
  color: #f3f6fb;
  padding: 0 10px;
  font: 800 0.84rem/1.2 "Manrope", sans-serif;
}

.network-diagnostics-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.network-stat {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
  padding: 10px;
}

.network-stat span {
  display: block;
  color: #aeb7c7;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.network-stat strong {
  display: block;
  margin-top: 2px;
  color: #f4f7fb;
  font-family: "Sora", sans-serif;
  font-size: 1.15rem;
}

.network-diagnostics-table-wrap {
  width: 100%;
  overflow: auto;
}

.network-diagnostics-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
}

.network-diagnostics-table th,
.network-diagnostics-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  text-align: left;
  vertical-align: middle;
  font-size: 0.82rem;
}

.network-diagnostics-table th {
  color: #aeb7c7;
  background: rgba(5, 6, 9, 0.7);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.network-row:hover {
  background: rgba(255, 255, 255, 0.025);
}

.network-ip-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.network-flag {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  font-size: 1rem;
}

.network-country {
  color: #f3f6fb;
  font-weight: 900;
}

.network-org {
  max-width: 260px;
  margin-top: 2px;
  overflow: hidden;
  color: #8f98aa;
  font-size: 0.74rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.network-direction {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 0 10px;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.network-direction.incoming {
  border: 1px solid rgba(255, 87, 103, 0.34);
  color: #ff9ca6;
  background: rgba(214, 40, 57, 0.14);
}

.network-direction.outgoing {
  border: 1px solid rgba(83, 177, 255, 0.34);
  color: #9dceff;
  background: rgba(83, 177, 255, 0.11);
}

.network-direction.internal {
  border: 1px solid rgba(162, 172, 189, 0.28);
  color: #d4dae5;
  background: rgba(162, 172, 189, 0.09);
}

.network-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.network-tags span {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: #d6dce8;
  padding: 4px 8px;
  font-size: 0.7rem;
  font-weight: 900;
}

.network-kill-btn {
  min-height: 34px;
  padding: 0 12px;
  color: #ff9ca6;
}

.machine-vscode-panel {
  margin-top: 14px;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(7, 8, 12, 0.9);
  overflow: hidden;
}

.machine-vscode-head {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(16, 18, 25, 0.96), rgba(7, 8, 12, 0.96));
}

.machine-vscode-head strong {
  display: block;
  color: #f3f6fb;
  font-family: "Sora", sans-serif;
}

.machine-vscode-head p {
  margin: 4px 0 0;
  color: #aeb7c7;
  font-size: 0.78rem;
  font-weight: 800;
}

.machine-vscode-actions {
  flex: 0 0 auto;
  display: flex;
  gap: 8px;
}

.machine-vscode-frame {
  display: block;
  width: 100%;
  height: min(74vh, 900px);
  min-height: 620px;
  border: 0;
  background: #050609;
}

.server-management-stats {
  margin-top: 14px;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.server-stat-pill {
  min-height: 58px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(7, 8, 10, 0.86);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  min-width: 0;
}

.server-stat-pill .ui-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  color: #9aa4b4;
}

.server-stat-pill strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #f3f5f8;
  font-family: "Sora", sans-serif;
  font-size: clamp(14px, 0.3vw + 12px, 18px);
}

.server-stat-pill span:last-child {
  color: #8e97a8;
  font-size: 11px;
  font-family: "Sora", sans-serif;
  text-transform: uppercase;
}

.server-management-charts {
  margin-top: 14px;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.server-management-charts .spark-card {
  border-color: rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(6, 7, 8, 0.9);
  padding: 18px;
}

.server-management-charts .spark-svg {
  height: 160px;
}

.server-management-charts .spark-line {
  stroke-width: 2.3;
}

.server-floating-controls {
  position: sticky;
  bottom: 14px;
  width: max-content;
  margin: 26px auto 0;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background: rgba(8, 9, 12, 0.86);
  padding: 10px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.server-floating-controls [data-tooltip]:first-child::after {
  left: 0;
  transform: translateX(0) translateY(4px);
}

.server-floating-controls [data-tooltip]:first-child:hover::after,
.server-floating-controls [data-tooltip]:first-child:focus-visible::after {
  transform: translateX(0) translateY(0);
}

.server-floating-controls [data-tooltip]:first-child::before {
  left: 24px;
}

.server-floating-controls [data-tooltip]:last-child::after {
  left: auto;
  right: 0;
  transform: translateX(0) translateY(4px);
}

.server-floating-controls [data-tooltip]:last-child:hover::after,
.server-floating-controls [data-tooltip]:last-child:focus-visible::after {
  transform: translateX(0) translateY(0);
}

.server-floating-controls [data-tooltip]:last-child::before {
  left: auto;
  right: 18px;
}

.server-floating-controls button {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 999px;
  padding: 0;
}

.server-floating-controls .ui-icon {
  width: 18px;
  height: 18px;
}

.server-floating-controls .server-kill-hidden {
  display: none;
}

.badge {
  border: 1px solid rgba(214, 40, 57, 0.6);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: var(--small-text);
  color: #ffc7cf;
  background: rgba(214, 40, 57, 0.14);
}

.section {
  border: 1px solid rgba(214, 40, 57, 0.25);
  border-radius: 16px;
  background: rgba(8, 10, 15, 0.55);
  padding: var(--section-pad);
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.section-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.grid {
  margin-top: 14px;
  display: grid;
  gap: var(--card-gap);
  grid-template-columns: repeat(auto-fill, minmax(clamp(270px, 18vw, 360px), 1fr));
}

.card {
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(17, 20, 28, 0.9), rgba(11, 13, 19, 0.84));
  padding: clamp(14px, 0.55vw + 10px, 20px);
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.card:hover {
  border-color: rgba(183, 58, 72, 0.28);
  background: linear-gradient(180deg, rgba(20, 24, 32, 0.94), rgba(13, 16, 23, 0.9));
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.card h3 {
  margin: 0;
  font-size: var(--title-h3);
}

.tag {
  margin-top: 8px;
  display: inline-block;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: var(--small-text);
  font-weight: 700;
}

.tag-online {
  background: rgba(23, 201, 100, 0.15);
  color: #8af2bc;
  border: 1px solid rgba(23, 201, 100, 0.4);
}

.tag-offline {
  background: rgba(214, 40, 57, 0.12);
  color: #ff9ca6;
  border: 1px solid rgba(214, 40, 57, 0.35);
}

.tag-loading {
  position: relative;
  background: rgba(245, 165, 36, 0.12);
  color: #ffd78a;
  border: 1px solid rgba(245, 165, 36, 0.36);
  padding-left: 25px;
}

.tag-loading::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 50%;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border-radius: 50%;
  background: #f5a524;
  box-shadow: 0 0 0 0 rgba(245, 165, 36, 0.5);
  animation: loadingPulse 1s ease-out infinite;
}

@keyframes loadingPulse {
  0% { box-shadow: 0 0 0 0 rgba(245, 165, 36, 0.45); }
  100% { box-shadow: 0 0 0 8px rgba(245, 165, 36, 0); }
}

.card-actions {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.card-actions button {
  height: clamp(36px, 0.45vw + 32px, 44px);
  min-width: 92px;
  font-size: var(--small-text);
}

.site-content-public-link {
  min-height: var(--control-height);
  min-width: 116px;
  padding: 0 clamp(14px, 0.4vw + 12px, 20px);
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  font-family: "Sora", sans-serif;
  font-size: var(--small-text);
  font-weight: 700;
  text-decoration: none;
}

.site-content-tabs {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.site-content-tabs button {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-family: "Sora", sans-serif;
  font-size: var(--small-text);
  font-weight: 800;
}

.site-content-tabs button:hover {
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--text);
}

.site-content-tabs button.is-active {
  border-color: rgba(255, 42, 80, 0.5);
  background: linear-gradient(135deg, rgba(255, 42, 80, 0.22), rgba(255, 255, 255, 0.055));
  color: var(--text);
  box-shadow: 0 14px 30px rgba(255, 42, 80, 0.12);
}

.site-content-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--card-gap);
}

.site-content-card {
  min-width: 0;
  display: grid;
  gap: 10px;
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(17, 20, 28, 0.9), rgba(11, 13, 19, 0.84));
  padding: clamp(14px, 0.55vw + 10px, 20px);
}

.site-content-card[hidden] {
  display: none;
}

.site-content-card-wide {
  grid-column: 1 / -1;
}

.site-content-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.site-content-card-head h3 {
  margin: 0;
  font-size: var(--title-h3);
}

.site-content-card-link {
  min-height: var(--control-height);
  padding: 0 clamp(14px, 0.35vw + 10px, 18px);
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  font-family: "Sora", sans-serif;
  font-size: var(--small-text);
  font-weight: 800;
  text-decoration: none;
}

.site-content-editor-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
}

.site-content-editor-tools button {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: var(--small-text);
}

.site-content-editor-tools .site-content-icon-btn {
  gap: 7px;
  display: inline-flex;
  align-items: center;
}

.site-content-editor-tools .site-content-icon-btn span {
  font-size: 16px;
  line-height: 1;
}

.site-content-format-hint {
  margin: -2px 0 0;
  color: var(--muted);
  font-size: var(--small-text);
  line-height: 1.45;
}

.site-content-format-hint code {
  padding: 2px 5px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.site-content-card textarea {
  min-height: 220px;
}

.site-content-clock-toggle {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  font-family: "Sora", sans-serif;
  font-weight: 800;
}

.site-content-clock-toggle input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.site-content-clock-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.site-content-clock-grid label {
  min-width: 0;
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: var(--small-text);
  font-weight: 800;
}

.site-content-rules-editor-shell {
  position: relative;
  min-height: 220px;
}

.site-content-rules-editor-highlight,
.site-content-rules-editor-shell textarea {
  min-height: 260px;
  padding: 10px 12px;
  font-family: "Manrope", sans-serif;
  font-size: var(--body-text);
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: break-word;
  word-break: break-word;
  tab-size: 2;
}

.site-content-rules-editor-highlight {
  position: absolute;
  inset: 0;
  z-index: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 11px;
  background: #0b0d11;
  color: var(--text);
  pointer-events: none;
  user-select: none;
}

.site-content-rules-editor-shell textarea {
  position: relative;
  z-index: 1;
  background: transparent;
  color: transparent;
  caret-color: #fff7ea;
  -webkit-text-fill-color: transparent;
}

.site-content-rules-editor-shell textarea:focus {
  background: transparent;
}

.site-content-rules-editor-shell textarea::selection {
  background: rgba(255, 23, 69, 0.28);
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.site-content-rules-editor-highlight .rules-editor-heading,
.site-content-rules-editor-highlight .rules-editor-article {
  color: #ff1745;
  font-weight: 900;
}

.site-content-rules-editor-highlight .rules-editor-bold {
  color: #fff7ea;
  font-weight: 900;
}

.site-content-rules-editor-highlight .rules-editor-red {
  color: #ff3d68;
}

.site-content-rules-editor-highlight .rules-editor-gold {
  color: #ffb000;
}

.site-content-rules-editor-highlight .rules-editor-blue {
  color: #6ce8ff;
}

.site-content-rules-editor-highlight .rules-editor-green {
  color: #88f2a4;
}

.site-content-rules-editor-highlight .rules-editor-pink {
  color: #ff6ea8;
}

.site-content-rules-preview-shell {
  display: grid;
  gap: 12px;
  margin-top: 4px;
  padding: 14px;
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
}

.site-content-rules-preview-head {
  display: grid;
  gap: 3px;
}

.site-content-rules-preview-head strong {
  color: var(--text);
  font-family: "Sora", sans-serif;
}

.site-content-rules-preview-head span {
  color: var(--muted);
  font-size: var(--small-text);
}

.site-content-rules-preview-layout {
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.site-content-rules-preview-toc,
.site-content-rules-preview {
  min-width: 0;
  max-height: 380px;
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(3, 5, 9, 0.5);
  padding: 12px;
}

.site-content-rules-preview-toc {
  display: grid;
  gap: 6px;
}

.site-content-rules-preview-toc a {
  padding: 8px 9px;
  border-left: 3px solid #ff1745;
  border-radius: 8px;
  background: rgba(255, 23, 69, 0.08);
  color: #ff1745;
  font-size: var(--small-text);
  font-weight: 800;
  text-transform: uppercase;
  text-decoration: none;
}

.site-content-rules-preview h4 {
  margin: 20px 0 10px;
  color: #ff1745;
  font-family: "Sora", sans-serif;
  font-size: clamp(16px, 0.5vw + 14px, 22px);
  line-height: 1.2;
  text-transform: uppercase;
}

.site-content-rules-preview h4:first-child {
  margin-top: 0;
}

.site-content-rules-preview p {
  margin: 0 0 10px;
  color: var(--text);
  font-size: var(--small-text);
  line-height: 1.55;
}

.site-content-rules-preview ul {
  margin: -2px 0 12px;
  padding-left: 20px;
  display: grid;
  gap: 5px;
}

.site-content-rules-preview li {
  color: var(--text);
  font-size: var(--small-text);
  line-height: 1.45;
}

.site-content-rules-preview li::marker {
  color: #ff1745;
}

.site-content-rules-preview strong {
  color: #fff;
}

.site-content-rules-preview .rules-article-label {
  color: #ff1745;
}

.site-content-rules-preview .rules-inline-red {
  color: #ff3d68;
}

.site-content-rules-preview .rules-inline-gold {
  color: #ffb000;
}

.site-content-rules-preview .rules-inline-blue {
  color: #6ce8ff;
}

.site-content-rules-preview .rules-inline-green {
  color: #88f2a4;
}

.site-content-rules-preview .rules-inline-pink {
  color: #ff6ea8;
}

.site-content-card input:disabled,
.site-content-card textarea:disabled {
  opacity: 0.72;
  cursor: not-allowed;
}

.site-content-faq-list {
  display: grid;
  gap: 12px;
}

.site-content-faq-row {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
}

.site-content-faq-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.site-content-faq-row-head strong {
  font-family: "Sora", sans-serif;
  font-size: var(--small-text);
}

.site-content-faq-row textarea {
  min-height: 90px;
}

.site-content-announcement-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.site-content-announcement-gallery-shell,
.site-content-announcement-list-shell {
  min-width: 0;
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
}

.site-content-announcement-subhead {
  display: grid;
  gap: 3px;
}

.site-content-announcement-subhead strong {
  color: var(--text);
  font-family: "Sora", sans-serif;
}

.site-content-announcement-subhead span {
  color: var(--muted);
  font-size: var(--small-text);
  line-height: 1.4;
}

.site-content-announcement-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 12px;
  max-height: 680px;
  overflow: auto;
}

.site-content-gallery-modal-card {
  width: min(980px, calc(100vw - 28px));
  max-height: min(820px, calc(100vh - 28px));
  height: min(820px, calc(100vh - 28px));
  position: relative;
  inset: auto;
  overflow: hidden;
  grid-template-rows: auto minmax(0, 1fr);
  transform: translateY(6px) scale(0.985);
}

.site-content-gallery-modal-card.is-open {
  transform: translateY(0) scale(1);
}

.site-content-gallery-modal-card::before {
  display: none;
}

.site-content-announcement-gallery-modal-grid {
  min-height: 0;
  max-height: none;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 2px 8px 8px 2px;
  scrollbar-color: rgba(212, 34, 55, 0.82) rgba(6, 7, 10, 0.72);
  scrollbar-width: thin;
}

.site-content-announcement-gallery-modal-grid::-webkit-scrollbar {
  width: 10px;
}

.site-content-announcement-gallery-modal-grid::-webkit-scrollbar-track {
  background: rgba(6, 7, 10, 0.72);
  border-radius: 8px;
}

.site-content-announcement-gallery-modal-grid::-webkit-scrollbar-thumb {
  background: rgba(212, 34, 55, 0.82);
  border: 2px solid rgba(6, 7, 10, 0.72);
  border-radius: 8px;
}

.site-content-announcement-image-card {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  background: rgba(4, 6, 10, 0.55);
}

.site-content-announcement-image-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  object-fit: cover;
}

.site-content-announcement-image-card figcaption {
  display: grid;
  gap: 2px;
  padding: 9px 10px;
}

.site-content-announcement-image-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  gap: 8px;
  padding: 0 10px 10px;
}

.site-content-announcement-image-actions button {
  min-height: 34px;
  border-radius: 10px;
  font-size: 11px;
}

.btn-light.is-danger {
  border-color: rgba(255, 23, 69, 0.38);
  background: rgba(255, 23, 69, 0.1);
  color: #ffdce3;
}

.btn-light.is-danger:hover:not(:disabled) {
  border-color: rgba(255, 23, 69, 0.62);
  background: rgba(255, 23, 69, 0.18);
}

.site-content-announcement-image-card strong,
.site-content-announcement-row-head strong {
  color: var(--text);
  font-family: "Sora", sans-serif;
  font-size: var(--small-text);
}

.site-content-announcement-image-card span,
.site-content-announcement-row-head span {
  color: var(--muted);
  font-size: 11px;
}

.site-content-announcement-list {
  display: grid;
  gap: 12px;
}

.site-content-announcement-row {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 13px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
}

.site-content-announcement-row-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.site-content-announcement-row-head > div {
  display: grid;
  gap: 3px;
}

.site-content-announcement-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.site-content-announcement-row label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: var(--small-text);
  font-weight: 800;
}

.site-content-announcement-row textarea {
  min-height: 86px;
}

.site-content-announcement-row select {
  width: 100%;
  min-height: var(--control-height);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  background: rgba(2, 4, 8, 0.82);
  color: var(--text);
  padding: 0 12px;
  font-family: "Manrope", sans-serif;
}

.site-content-announcement-image-picker {
  min-height: var(--control-height);
  width: 100%;
  justify-content: center;
}

.site-content-announcement-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.site-content-announcement-toggle {
  display: inline-flex !important;
  grid-auto-flow: column;
  align-items: center;
  justify-content: flex-start;
  gap: 8px !important;
}

.site-content-announcement-toggle input {
  width: 18px;
  height: 18px;
}

.site-content-announcement-cover-preview {
  width: 136px;
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.25);
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

.site-content-announcement-cover-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 760px) {
  .site-content-grid {
    grid-template-columns: 1fr;
  }

  .site-content-card-head {
    flex-direction: column;
  }

  .site-content-card-head button,
  .site-content-card-head .site-content-card-link,
  .site-content-card-head .inline-form-actions {
    width: 100%;
  }

  .site-content-rules-preview-layout {
    grid-template-columns: 1fr;
  }

  .site-content-announcement-layout,
  .site-content-announcement-fields,
  .site-content-clock-grid {
    grid-template-columns: 1fr;
  }

  .site-content-announcement-gallery {
    grid-template-columns: 1fr;
  }

  .site-content-announcement-bottom {
    align-items: stretch;
    flex-direction: column;
  }

  .site-content-announcement-cover-preview {
    width: 100%;
  }
}

.list {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}

.item {
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  padding: 10px 12px;
  background: rgba(12, 15, 21, 0.72);
}

.item-title {
  margin: 0;
  font-weight: 800;
}

.item-sub {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: var(--small-text);
}

.item-row {
  margin-top: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.item-row a {
  color: #ffc7cf;
}

.logger-layout {
  display: grid;
  grid-template-columns: minmax(230px, 300px) minmax(0, 1fr);
  gap: clamp(14px, 0.8vw + 8px, 24px);
  margin-top: 12px;
}

.logger-topbar {
  margin-top: 12px;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.logger-topbar input {
  width: 100%;
}

.logger-limit-control {
  min-width: 170px;
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: var(--small-text);
  font-weight: 800;
}

.logger-filters {
  display: grid;
  align-content: start;
  gap: 10px;
}

.logger-filter-block {
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 10px;
  background: rgba(10, 12, 18, 0.72);
  min-height: 0;
}

.logger-filter-block h3 {
  margin: 0 0 10px;
  font-size: 0.9rem;
}

.logger-date-filter {
  align-self: end;
}

.logger-date-filter summary {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #eef2f8;
  font-size: 0.9rem;
  font-weight: 900;
  cursor: pointer;
  list-style: none;
}

.logger-date-filter summary::-webkit-details-marker {
  display: none;
}

.logger-date-filter summary::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid rgba(255, 120, 140, 0.84);
  border-bottom: 2px solid rgba(255, 120, 140, 0.84);
  transform: rotate(45deg);
  transition: transform 0.16s ease;
}

.logger-date-filter[open] summary {
  margin-bottom: 10px;
}

.logger-date-filter[open] summary::after {
  transform: rotate(225deg);
}

.logger-date-filter label {
  display: grid;
  gap: 6px;
  margin-top: 8px;
  color: var(--muted);
  font-size: var(--small-text);
  font-weight: 800;
}

.logger-date-filter input {
  width: 100%;
  height: 42px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(7, 8, 12, 0.72);
  color: #eef2f8;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.logger-date-filter input::placeholder {
  color: rgba(158, 177, 220, 0.5);
}

.logger-date-filter input:focus {
  border-color: rgba(255, 120, 140, 0.58);
  box-shadow: 0 0 0 3px rgba(214, 40, 57, 0.12);
}

.logger-date-actions {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.logger-date-actions button {
  min-height: 38px;
}

.logger-check-grid {
  display: grid;
  gap: 6px;
}

.logger-check {
  min-height: 36px;
  border-radius: 10px;
  padding-right: 10px;
}

.logger-check small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.logger-results {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 8px;
}

.logger-list {
  display: grid;
  gap: 3px;
  max-height: clamp(520px, 72vh, 860px);
  overflow-y: auto;
  overscroll-behavior: contain;
  will-change: scroll-position;
  contain: content;
  position: relative;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 120, 140, 0.72) rgba(10, 12, 18, 0.82);
  padding: 4px;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 120, 140, calc(0.08 + var(--logger-scroll-progress, 0) * 0.1)), transparent 42px) local,
    linear-gradient(0deg, rgba(255, 120, 140, 0.06), transparent 48px) local,
    rgba(8, 10, 15, 0.45);
  transition: border-color 0.14s ease, box-shadow 0.14s ease;
}

.logger-list.is-scrolling {
  border-color: rgba(255, 120, 140, 0.34);
  box-shadow: inset 0 0 0 1px rgba(255, 120, 140, 0.08), 0 0 22px rgba(214, 40, 57, 0.08);
}

.logger-list::-webkit-scrollbar {
  width: 10px;
}

.logger-list::-webkit-scrollbar-track {
  background: rgba(10, 12, 18, 0.82);
  border-radius: 999px;
}

.logger-list::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(255, 120, 140, 0.9), rgba(183, 58, 72, 0.82));
  border: 2px solid rgba(10, 12, 18, 0.82);
  border-radius: 999px;
  transition: background 0.14s ease;
}

.logger-list::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(255, 150, 165, 0.96), rgba(214, 40, 57, 0.9));
}

.logger-list.is-scrolling::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(255, 150, 165, 1), rgba(214, 40, 57, 0.96));
}

.logger-row {
  border: 1px solid var(--border-soft);
  border-left: 5px solid rgba(255, 120, 140, 0.34);
  border-radius: 7px;
  padding: 2px 7px 2px 8px;
  background: rgba(12, 15, 21, 0.72);
  transition: border-color 0.12s ease, background-color 0.12s ease, box-shadow 0.12s ease;
}

.logger-row:hover {
  border-color: rgba(255, 120, 140, 0.5);
  border-left-color: rgba(255, 120, 140, 0.95);
  background: rgba(18, 12, 18, 0.86);
  box-shadow: inset 0 0 0 1px rgba(255, 120, 140, 0.08);
}

.logger-row-head,
.logger-row-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 7px;
}

.logger-row-head strong {
  font-size: 0.8rem;
  color: #f3f6fb;
}

.logger-row-head .tag {
  padding: 1px 6px;
  font-size: 0.6rem;
  color: #ffd3dc;
  border-color: rgba(255, 120, 140, 0.38);
  background: rgba(214, 40, 57, 0.12);
}

.logger-row-head time,
.logger-row-meta {
  color: #8391a8;
  font-size: 0.66rem;
}

.logger-row-detail {
  margin: 1px 0;
  color: #eef2f8;
  font-size: 0.8rem;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.logger-row-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.logger-row-meta b {
  color: #718198;
  font-weight: 800;
}

.logger-row-meta em {
  color: #a9c7ff;
  font-style: normal;
  font-weight: 800;
}

.logger-meta-position em {
  color: #88deb6;
}

.logger-row:hover .logger-row-detail {
  color: #fff7f8;
}

.logger-row:hover .logger-row-meta b {
  color: #9aa8ba;
}

.logger-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.logger-pagination button {
  min-height: 38px;
}

.logger-pagination span {
  color: var(--muted);
  font-size: var(--small-text);
  font-weight: 800;
}

.app-item-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
}

.app-item-main {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 14px;
}

.app-item-copy {
  min-width: 0;
}

.app-icon {
  width: 56px;
  height: 56px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 18px;
  border: 1px solid rgba(214, 40, 57, 0.22);
  background:
    radial-gradient(circle at 30% 25%, rgba(214, 40, 57, 0.24), transparent 58%),
    rgba(10, 16, 24, 0.92);
  color: #ffe8ec;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.app-icon-image {
  color: transparent;
  text-shadow: none;
}

.app-actions {
  justify-content: flex-end;
}

.user-row-actions {
  margin-top: 0;
}

.user-form-actions {
  margin-top: 6px;
}

.login-prefill-help {
  margin-top: 12px;
  display: grid;
  gap: 5px;
  border: 1px solid rgba(255, 120, 140, 0.32);
  border-radius: 14px;
  background: rgba(214, 40, 57, 0.1);
  color: #dfe4ee;
  padding: 12px 14px;
  font-size: var(--small-text);
}

.login-prefill-help strong {
  color: #fff2f4;
  font-family: "Sora", sans-serif;
  font-size: 0.9rem;
}

.user-account-list {
  margin-top: 14px;
  gap: 8px;
}

.user-account-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 64px;
  padding: 8px 10px;
}

.user-account-list > .user-form {
  grid-column: 1 / -1;
  margin-top: 0;
}

.user-account-main {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.user-account-main .mc-head-frame {
  width: 38px;
  height: 38px;
  border-radius: 9px;
}

.user-account-main .mc-head-canvas,
.user-account-main .mc-head-surface {
  width: 38px;
  height: 38px;
}

.user-account-copy {
  min-width: 0;
}

.user-account-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
}

.user-account-title-row .item-title {
  font-size: 0.88rem;
  line-height: 1.1;
}

.user-account-title-row .tag {
  margin-top: 0;
  padding: 3px 7px;
  font-size: 0.68rem;
}

.user-configurator-toggle {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid rgba(255, 209, 102, 0.42);
  border-radius: 999px;
  background: rgba(255, 209, 102, 0.1);
  color: #ffe3a3;
  padding: 3px 8px 3px 6px;
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  user-select: none;
}

.user-configurator-toggle input {
  width: 13px;
  height: 13px;
  margin: 0;
  accent-color: #ffd166;
  cursor: pointer;
}

.user-configurator-toggle:has(input:checked) {
  border-color: rgba(255, 209, 102, 0.72);
  background: rgba(255, 209, 102, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 209, 102, 0.12);
}

.user-configurator-toggle:has(input:disabled) {
  opacity: 0.58;
  cursor: wait;
}

.user-account-copy .item-sub {
  margin-top: 2px;
  font-size: 0.68rem;
  line-height: 1.2;
}

.user-account-perms {
  display: none;
}

.user-account-id {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-account-actions {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  flex-wrap: wrap;
}

.user-account-actions .user-action-icon {
  width: 36px;
  min-width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 0;
  border-radius: 11px;
}

.user-account-actions .user-action-icon > span:last-child {
  display: none;
}

.user-account-actions .ui-icon {
  width: 17px;
  height: 17px;
}

.user-account-actions [data-tooltip] {
  position: relative;
}

.user-account-actions [data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 9px);
  z-index: 20;
  width: max-content;
  max-width: 180px;
  transform: translateX(-50%) translateY(4px);
  pointer-events: none;
  opacity: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9px;
  background: rgba(12, 14, 18, 0.98);
  color: #f4f6fb;
  padding: 7px 9px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.36);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
  transition: opacity 0.12s ease, transform 0.12s ease;
}

.user-account-actions [data-tooltip]:hover::after,
.user-account-actions [data-tooltip]:focus-visible::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.user-account-actions button.is-active {
  border-color: rgba(214, 40, 57, 0.52);
  background: rgba(214, 40, 57, 0.14);
  box-shadow: inset 0 0 0 1px rgba(214, 40, 57, 0.12);
}

@media (min-width: 1500px) {
  .user-account-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  .user-account-item {
    min-height: 68px;
  }
}

.user-form {
  margin-top: 14px;
  border: 1px solid rgba(214, 40, 57, 0.28);
  border-radius: 14px;
  background: rgba(6, 8, 12, 0.64);
  padding: clamp(14px, 0.6vw + 10px, 20px);
}

.user-form-head h3 {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: var(--title-h3);
}

.user-edit-only {
  display: none;
}

.user-configurable {
  display: none;
}

.user-form.is-editing .user-edit-only,
.user-form.is-editing .user-configurable,
.user-form.is-creating .user-configurable {
  display: grid;
}

.input-action-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.input-action-row .btn-light {
  height: 100%;
  min-height: 46px;
}

.user-password-row,
.user-account-id-row {
  min-width: 0;
}

.user-password-help,
.user-account-id-row .section-sub {
  margin-top: 7px;
}

.role-config-panel {
  margin-top: 14px;
  border: 1px solid rgba(214, 40, 57, 0.3);
  border-radius: 14px;
  background: rgba(7, 9, 14, 0.68);
  padding: clamp(14px, 0.6vw + 10px, 20px);
}

.role-config-head,
.role-config-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.role-config-head h3 {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: var(--title-h3);
}

.role-config-list {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.role-config-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(10, 12, 18, 0.76);
  overflow: hidden;
}

.role-config-card[open] {
  border-color: color-mix(in srgb, var(--role-color, #ff1745) 48%, rgba(255, 255, 255, 0.08));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--role-color, #ff1745) 12%, transparent);
}

.role-config-summary {
  list-style: none;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: clamp(12px, 0.45vw + 10px, 18px);
  cursor: pointer;
  background: linear-gradient(135deg, color-mix(in srgb, var(--role-color, #ff1745) 12%, transparent), rgba(10, 12, 18, 0.68));
}

.role-config-summary::-webkit-details-marker {
  display: none;
}

.role-config-summary-main,
.role-config-summary-side {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.role-order-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.role-order-controls .btn-icon-only {
  width: 34px;
  height: 34px;
  min-width: 34px;
  padding: 0;
}

.role-order-controls .btn-icon-only:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

.role-color-dot {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: var(--role-color, #ff1745);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--role-color, #ff1745) 16%, transparent);
  flex: 0 0 auto;
}

.role-config-chevron {
  width: 10px;
  height: 10px;
  border-right: 2px solid rgba(255, 255, 255, 0.56);
  border-bottom: 2px solid rgba(255, 255, 255, 0.56);
  transform: rotate(45deg);
  transition: transform 0.16s ease;
  flex: 0 0 auto;
}

.role-config-card[open] .role-config-chevron {
  transform: rotate(225deg) translate(-2px, -2px);
}

.role-config-body {
  padding: 0 clamp(12px, 0.5vw + 10px, 18px) clamp(12px, 0.5vw + 10px, 18px);
  display: grid;
  gap: 12px;
}

.role-tag {
  border: 1px solid color-mix(in srgb, var(--role-color, #ff1745) 58%, transparent);
  background: color-mix(in srgb, var(--role-color, #ff1745) 16%, transparent);
  color: color-mix(in srgb, var(--role-color, #ff1745) 88%, #fff);
}

.role-config-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}

.role-config-perms {
  align-items: start;
  grid-template-columns: repeat(2, minmax(min(100%, 280px), 1fr));
}

.role-config-check {
  min-height: 42px;
}

.role-config-management-check {
  border-color: rgba(255, 120, 140, 0.34);
}

.role-color-editor {
  display: grid;
  gap: 8px;
}

.role-color-row {
  display: grid;
  grid-template-columns: 58px minmax(0, 180px);
  gap: 10px;
  align-items: center;
}

.role-color-row input[type="color"] {
  min-height: 46px;
  padding: 4px;
  cursor: pointer;
}

.role-color-row input[type="text"] {
  text-transform: uppercase;
  font-family: "Consolas", "Courier New", monospace;
  font-weight: 800;
}

.role-color-palette {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.role-color-swatch {
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(9, 10, 15, 0.82);
  padding: 4px;
  cursor: pointer;
}

.role-color-swatch span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 7px;
  background: var(--swatch-color);
  box-shadow: 0 0 18px color-mix(in srgb, var(--swatch-color) 35%, transparent);
}

.role-color-swatch.is-active {
  border-color: color-mix(in srgb, var(--swatch-color) 80%, #fff);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--swatch-color) 20%, transparent);
}

.role-config-footer {
  display: flex;
  justify-content: flex-end;
}

.security-setup-field,
.security-pin-field {
  min-width: 0;
}

.security-pin-field.is-disabled {
  opacity: 0.52;
}

.security-pin-field.is-disabled input {
  cursor: not-allowed;
}

.auth-mode-group {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.auth-mode-card {
  position: relative;
  display: block;
  cursor: pointer;
}

.auth-mode-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.auth-mode-card span {
  min-height: 76px;
  display: grid;
  gap: 3px;
  align-content: center;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 12px;
  background: rgba(9, 11, 16, 0.86);
  padding: 12px 14px 12px 46px;
  color: #e9edf5;
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.auth-mode-card span::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 50%;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.28);
  transform: translateY(-50%);
}

.auth-mode-card input:checked + span {
  border-color: rgba(255, 120, 140, 0.58);
  background: linear-gradient(135deg, rgba(214, 40, 57, 0.22), rgba(13, 15, 21, 0.92));
  box-shadow: inset 0 0 0 1px rgba(255, 180, 190, 0.08);
}

.auth-mode-card input:checked + span::before {
  border-color: #ff8da0;
  background: radial-gradient(circle, #ffced6 0 35%, transparent 40%);
}

.auth-mode-card strong {
  font-family: "Sora", sans-serif;
  font-size: var(--small-text);
}

.auth-mode-card small {
  color: var(--muted);
  font-size: 12px;
}

.permission-editor {
  display: grid;
  gap: 12px;
}

.permission-block {
  display: grid;
  gap: 8px;
}

.permission-title {
  margin: 0;
  color: var(--muted);
  font-size: var(--small-text);
  font-weight: 800;
}

.aresshield-layout {
  margin-top: 14px;
  display: grid;
  gap: var(--card-gap);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  align-items: start;
}

.aresshield-panel {
  border: 1px solid rgba(214, 40, 57, 0.22);
  border-radius: 16px;
  background: rgba(7, 9, 13, 0.58);
  padding: clamp(14px, 0.6vw + 10px, 20px);
}

.aresshield-panel-wide {
  grid-column: 1 / -1;
}

.aresshield-list {
  margin-top: 12px;
}

.aresshield-item {
  padding: clamp(12px, 0.45vw + 10px, 18px);
}

.aresshield-item-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.aresshield-identity {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.aresshield-identity-copy {
  min-width: 0;
}

.aresshield-identity-copy .item-title,
.aresshield-identity-copy .item-sub {
  overflow-wrap: anywhere;
}

.mc-head-frame {
  position: relative;
  width: clamp(48px, 0.7vw + 42px, 60px);
  height: clamp(48px, 0.7vw + 42px, 60px);
  flex: 0 0 auto;
  display: grid;
  place-items: center;
}

.mc-head-canvas,
.mc-head-surface {
  position: relative;
  z-index: 1;
  width: clamp(48px, 0.7vw + 42px, 60px);
  height: clamp(48px, 0.7vw + 42px, 60px);
  border-radius: 12px;
  border: 1px solid rgba(214, 40, 57, 0.26);
  background: rgba(13, 16, 22, 0.92);
  image-rendering: pixelated;
  flex: 0 0 auto;
  display: block;
}

.mc-head-placeholder {
  background: linear-gradient(135deg, rgba(214, 40, 57, 0.24), rgba(45, 49, 60, 0.7));
}

.mc-head-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid rgba(214, 40, 57, 0.26);
  background: linear-gradient(135deg, rgba(214, 40, 57, 0.24), rgba(45, 49, 60, 0.7));
  color: #f6f8fb;
  font-family: "Sora", sans-serif;
  font-size: clamp(14px, 0.22vw + 12px, 18px);
  letter-spacing: 0.08em;
  z-index: 0;
}

.mc-head-frame.is-loaded .mc-head-fallback {
  display: none;
}

.mc-head-frame.is-failed .mc-head-canvas,
.mc-head-frame.is-failed .mc-head-surface {
  display: none;
}

.aresshield-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.aresshield-meta {
  margin-top: 12px;
  display: grid;
  gap: 6px 12px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.aresshield-meta .item-sub {
  margin: 0;
}

.aresshield-actions {
  margin-top: 12px;
}

.aresshield-log-item {
  padding: clamp(12px, 0.45vw + 10px, 18px);
}

.aresshield-log-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
}

.aresshield-log-detail {
  margin-top: 10px;
}

.tag-neutral {
  background: rgba(255, 255, 255, 0.08);
  color: #dfe5ee;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.tag-warn {
  background: rgba(245, 165, 36, 0.12);
  color: #ffd78a;
  border: 1px solid rgba(245, 165, 36, 0.34);
}

.tag-trusted {
  background: rgba(93, 172, 255, 0.12);
  color: #9bd4ff;
  border: 1px solid rgba(93, 172, 255, 0.28);
}

.inline-form {
  margin-top: 10px;
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(clamp(180px, 14vw, 260px), 1fr));
}

.inline-form button {
  min-width: 100%;
}

.inline-form-actions {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.inline-form-actions > * {
  flex: 1 1 0;
}

.row-two {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.checks label {
  position: relative;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  background: rgba(9, 11, 16, 0.86);
  color: #dfe4ee;
  padding: 0 14px;
  font-size: var(--small-text);
  font-weight: 800;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.checks label:has(input:checked) {
  border-color: rgba(255, 120, 140, 0.58);
  background: rgba(214, 40, 57, 0.2);
  color: #fff2f4;
}

.checks label:has(input:disabled) {
  opacity: 0.58;
  cursor: not-allowed;
}

.checks input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.service-perm-box {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(clamp(190px, 15vw, 280px), 1fr));
}

.perm-item {
  position: relative;
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(214, 40, 57, 0.22);
  border-radius: 12px;
  padding: 0 14px 0 44px;
  background: rgba(9, 10, 15, 0.6);
  color: #dde2eb;
  font-size: var(--small-text);
  font-weight: 800;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.perm-item:hover {
  border-color: rgba(255, 120, 140, 0.42);
  background: rgba(16, 18, 25, 0.9);
}

.perm-item::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  border: 2px solid rgba(255, 255, 255, 0.22);
  transform: translateY(-50%);
}

.perm-item:has(input:checked) {
  border-color: rgba(255, 120, 140, 0.58);
  background: linear-gradient(135deg, rgba(214, 40, 57, 0.2), rgba(12, 14, 20, 0.86));
}

.perm-item:has(input:checked)::before {
  border-color: #ff8da0;
  background: #ff8da0;
  box-shadow: inset 0 0 0 4px rgba(9, 10, 15, 0.92);
}

.perm-item:has(input:disabled) {
  opacity: 0.55;
  cursor: not-allowed;
}

.perm-item input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.mono {
  font-family: "Consolas", "Courier New", monospace;
}

.monitor-groups {
  margin-top: 14px;
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}

.monitor-group {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: linear-gradient(170deg, rgba(18, 21, 29, 0.72), rgba(8, 10, 15, 0.92));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03), 0 14px 32px rgba(0, 0, 0, 0.38);
  overflow: hidden;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.monitor-group-head {
  display: grid;
  gap: 2px;
}

.monitor-group-head h3 {
  margin: 0;
  font-size: var(--title-h3);
  font-family: "Sora", sans-serif;
}

.monitor-group-toggle {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: clamp(12px, 0.55vw + 8px, 18px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(12, 14, 20, 0.12));
  transition: background 0.16s ease;
}

.monitor-group-toggle::-webkit-details-marker {
  display: none;
}

.monitor-group-toggle:hover {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(14, 17, 24, 0.18));
}

.monitor-group-chevron {
  width: 12px;
  height: 12px;
  margin-top: 6px;
  border-right: 2px solid rgba(255, 184, 196, 0.9);
  border-bottom: 2px solid rgba(255, 184, 196, 0.9);
  transform: rotate(-45deg);
  transition: transform 0.16s ease;
  flex: 0 0 12px;
}

.monitor-group[open] .monitor-group-chevron {
  transform: rotate(45deg);
}

.monitor-group-body {
  padding: clamp(12px, 0.55vw + 8px, 18px);
  border-top: 1px solid rgba(214, 40, 57, 0.2);
  background: rgba(4, 6, 10, 0.72);
}

.monitor-subgrid.grid {
  margin-top: 0;
  gap: var(--card-gap);
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
}

.monitor-toolbar {
  margin-top: 12px;
  display: flex;
  justify-content: flex-end;
  align-items: end;
  gap: 12px;
}

.monitor-console-wrap {
  margin-top: 14px;
  border: 1px solid rgba(214, 40, 57, 0.26);
  border-radius: 14px;
  background: rgba(6, 8, 12, 0.74);
  padding: clamp(14px, 0.55vw + 10px, 22px);
}

.monitor-console-wrap h3 {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: var(--title-h3);
}

.monitor-console-wrap .servers-layout {
  margin-top: 10px;
}

.monitor-sort-wrap {
  display: grid;
  gap: 6px;
  min-width: 220px;
}

.monitor-sort-wrap label {
  font-size: var(--small-text);
}

.monitor-card {
  display: grid;
  gap: 12px;
  border-color: var(--border-soft);
  background: linear-gradient(180deg, rgba(11, 14, 20, 0.9), rgba(7, 9, 14, 0.86));
}

.monitor-card-clickable {
  cursor: pointer;
}

.card.monitor-card:hover {
  border-color: rgba(196, 203, 217, 0.46);
  background: linear-gradient(180deg, rgba(23, 26, 33, 0.96), rgba(13, 16, 22, 0.93));
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(153, 160, 178, 0.2);
}

.monitor-card-clickable:focus-within,
.monitor-card-clickable:hover {
  border-color: rgba(255, 120, 140, 0.38);
}

.monitor-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.monitor-head .tag {
  margin-top: 0;
}

.monitor-kpis {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.monitor-kpis .item-sub {
  margin: 0;
}

.monitor-kpis strong {
  color: #f4f5f8;
  margin-right: 6px;
}

.monitor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.monitor-actions button {
  height: clamp(36px, 0.45vw + 32px, 44px);
  min-width: 88px;
  font-size: var(--small-text);
}

.monitor-actions .btn-light,
.card-actions .btn-light {
  border-color: rgba(214, 40, 57, 0.28);
  background: rgba(15, 18, 24, 0.86);
}

.monitor-resource-btn {
  border-color: rgba(255, 120, 140, 0.55);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.gear-icon {
  width: 14px;
  height: 14px;
  display: inline-block;
  flex: 0 0 14px;
}

.gear-icon svg {
  width: 14px;
  height: 14px;
  display: block;
  fill: currentColor;
}

.monitor-empty {
  border: 1px dashed rgba(214, 40, 57, 0.35);
  border-radius: 10px;
  padding: 10px;
  color: var(--muted);
  font-size: var(--small-text);
}

.spark-grid {
  display: grid;
  gap: clamp(10px, 0.4vw + 7px, 16px);
  grid-template-columns: repeat(auto-fit, minmax(clamp(260px, 20vw, 340px), 1fr));
}

.spark-card {
  border: 1px solid rgba(214, 40, 57, 0.24);
  border-radius: 12px;
  background: rgba(4, 6, 9, 0.86);
  padding: clamp(10px, 0.45vw + 7px, 16px);
}

.spark-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 8px;
}

.spark-head span {
  color: var(--muted);
  font-size: var(--small-text);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.spark-head strong {
  font-size: var(--small-text);
  color: #f1f5ff;
  display: flex;
  gap: 10px;
}

.spark-head strong em {
  font-style: normal;
}

.spark-plot {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 8px;
  align-items: stretch;
}

.spark-scale {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #8f98a8;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
}

.spark-svg {
  width: 100%;
  height: 68px;
  display: block;
}

.spark-grid-line {
  stroke: rgba(255, 255, 255, 0.07);
  stroke-width: 1;
}

.spark-base {
  fill: none;
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 1;
}

.spark-fill {
  fill: var(--spark-color);
  opacity: 0.18;
}

.spark-line {
  fill: none;
  stroke: var(--spark-color);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 5px color-mix(in srgb, var(--spark-color), transparent 55%));
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(3, 2, 4, 0.34);
}

#site-content-announcement-gallery-modal {
  display: grid;
  place-items: center;
  padding: 14px;
}

.modal-card {
  position: fixed;
  width: min(560px, calc(100% - 16px));
  max-height: calc(100% - 16px);
  overflow: auto;
  border: 1px solid rgba(214, 40, 57, 0.56);
  border-radius: 16px;
  background: linear-gradient(165deg, rgba(74, 10, 21, 0.985), rgba(10, 7, 9, 0.992));
  padding: clamp(14px, 0.55vw + 10px, 22px);
  display: grid;
  gap: clamp(10px, 0.45vw + 7px, 16px);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  transform: translateY(6px) scale(0.985);
  opacity: 0;
  transition: transform 0.16s ease, opacity 0.16s ease;
}

.modal-card.is-open {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.modal-card::before {
  content: "";
  position: absolute;
  left: var(--arrow-left, 26px);
  width: 14px;
  height: 14px;
  background: linear-gradient(165deg, rgba(74, 10, 21, 0.985), rgba(10, 7, 9, 0.992));
  border-left: 1px solid rgba(214, 40, 57, 0.56);
  border-top: 1px solid rgba(214, 40, 57, 0.56);
  transform: rotate(45deg);
}

.modal-card.is-below::before {
  top: -8px;
}

.modal-card.is-above::before {
  bottom: -8px;
  transform: rotate(225deg);
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.modal-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.modal-head h3 {
  margin: 0;
  font-family: "Sora", sans-serif;
}

.resource-modal-form {
  display: grid;
  gap: 10px;
}

.resource-modal-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr;
}

.backup-settings-card {
  width: min(1040px, calc(100vw - 24px));
  max-height: min(760px, calc(100vh - 28px));
  overflow: hidden;
  padding: 0;
  left: 50%;
  top: 50%;
  transform: translate(-50%, calc(-50% + 6px)) scale(0.985);
  grid-template-rows: auto minmax(0, 1fr);
  background: #080a0f;
}

.backup-settings-card.is-open {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

.backup-settings-card::before {
  display: none;
}

.backup-settings-card .modal-head {
  padding: 20px 22px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 10, 15, 0.98);
}

.backup-settings-form {
  display: grid;
  gap: 14px;
  min-height: 0;
  overflow: auto;
  padding: 18px 22px 0;
  scrollbar-color: rgba(108, 232, 255, 0.72) rgba(6, 7, 10, 0.88);
}

.backup-settings-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: 1.05fr 1.1fr 0.85fr 0.9fr;
  align-items: stretch;
}

.backup-settings-grid fieldset {
  margin: 0;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 14px 12px 12px;
  display: grid;
  gap: 9px;
  background: rgba(255, 255, 255, 0.025);
}

.backup-settings-grid legend {
  padding: 0 6px;
  color: var(--text);
  font-family: "Sora", sans-serif;
  font-size: var(--small-text);
  line-height: 1;
}

.backup-settings-grid label {
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.25;
}

.backup-settings-grid input[type="checkbox"] {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.backup-settings-grid select {
  margin-bottom: 4px;
}

.backup-settings-grid input,
.backup-settings-grid select {
  height: 38px;
  border-radius: 8px;
}

.backup-settings-grid input[type="number"] {
  width: 100%;
}

.backup-field-types {
  align-content: center;
}

.backup-field-retention {
  grid-column: 1 / -1;
}

.backup-retention-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.backup-retention-grid label {
  display: grid;
  align-items: start;
  gap: 7px;
}

.backup-excludes-block {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.025);
}

.backup-excludes-block .section-sub {
  margin-top: 2px;
  font-size: var(--small-text);
}

.backup-excludes-block textarea {
  min-height: 112px;
  max-height: 190px;
  border-radius: 8px;
  font-family: "Manrope", sans-serif;
  font-size: var(--small-text);
}

.backup-remote-block {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(108, 232, 255, 0.16);
  border-radius: 8px;
  padding: 12px;
  background:
    linear-gradient(180deg, rgba(45, 103, 179, 0.12), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.025);
}

.backup-automation-block {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(108, 232, 255, 0.18);
  border-radius: 8px;
  padding: 12px;
  background:
    linear-gradient(180deg, rgba(45, 103, 179, 0.14), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.025);
}

.backup-automation-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.backup-automation-panel {
  display: grid;
  gap: 11px;
}

.backup-automation-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.backup-automation-grid label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: var(--small-text);
}

.backup-automation-block input,
.backup-automation-block select {
  height: 38px;
  border-radius: 8px;
}

.backup-automation-block textarea {
  min-height: 82px;
  border-radius: 8px;
  font-family: "Consolas", "Courier New", monospace;
  font-size: var(--small-text);
}

.backup-switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: start;
  color: var(--muted);
  font-size: var(--small-text);
}

.backup-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.backup-switch span {
  width: 34px;
  height: 18px;
  border: 1px solid rgba(108, 232, 255, 0.68);
  border-radius: 999px;
  background: rgba(4, 12, 20, 0.96);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04), 0 0 16px rgba(108, 232, 255, 0.12);
  position: relative;
  flex: 0 0 auto;
}

.backup-switch span::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  left: 3px;
  top: 2px;
  border-radius: 50%;
  background: #6ce8ff;
  box-shadow: 0 0 10px rgba(108, 232, 255, 0.72);
  transition: transform 0.14s ease;
}

.backup-switch input:checked + span {
  border-color: rgba(108, 232, 255, 0.9);
  background: rgba(13, 54, 78, 0.95);
}

.backup-switch input:checked + span::after {
  transform: translateX(15px);
}

.backup-automation-preview {
  min-height: 38px;
  display: flex;
  align-items: center;
  border: 1px dashed rgba(108, 232, 255, 0.22);
  border-radius: 8px;
  padding: 9px 10px;
  background: rgba(3, 8, 14, 0.58);
  color: var(--muted);
  font-family: "Consolas", "Courier New", monospace;
  font-size: var(--small-text);
}

.backup-remote-head,
.backup-remote-account-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.backup-remote-toggle,
.backup-remote-active,
.backup-remote-account-enabled {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-self: start;
  color: var(--muted);
  font-size: var(--small-text);
  font-weight: 800;
}

.backup-remote-toggle {
  min-height: 42px;
  border: 1px solid rgba(108, 232, 255, 0.14);
  border-radius: 8px;
  padding: 0 12px;
  background: rgba(8, 10, 15, 0.72);
}

.backup-remote-block input[type="checkbox"],
.backup-remote-block input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(108, 232, 255, 0.42);
  border-radius: 5px;
  background: rgba(3, 5, 9, 0.92);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.backup-remote-block input[type="radio"] {
  border-radius: 999px;
}

.backup-remote-block input[type="checkbox"]::after,
.backup-remote-block input[type="radio"]::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 3px;
  background: #6ce8ff;
  transform: scale(0);
  transition: transform 0.12s ease;
}

.backup-remote-block input[type="radio"]::after {
  border-radius: 999px;
}

.backup-remote-block input[type="checkbox"]:checked,
.backup-remote-block input[type="radio"]:checked {
  border-color: rgba(108, 232, 255, 0.8);
  background: rgba(45, 103, 179, 0.24);
}

.backup-remote-block input[type="checkbox"]:checked::after,
.backup-remote-block input[type="radio"]:checked::after {
  transform: scale(1);
}

.backup-remote-accounts {
  display: grid;
  gap: 10px;
}

.backup-remote-empty {
  margin: 0;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 12px;
}

.backup-remote-account {
  display: grid;
  gap: 11px;
  border: 1px solid rgba(108, 232, 255, 0.18);
  border-radius: 8px;
  padding: 12px;
  background: rgba(3, 8, 14, 0.56);
}

.backup-remote-account-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.backup-remote-account-grid label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: var(--small-text);
}

.backup-remote-account-grid input,
.backup-remote-account-grid select {
  height: 38px;
  border-radius: 8px;
}

.backup-remote-account-grid textarea {
  min-height: 118px;
  border-radius: 8px;
  font-family: "Consolas", "Courier New", monospace;
  font-size: var(--small-text);
  resize: vertical;
}

.backup-remote-endpoint {
  grid-column: span 2;
}

.backup-remote-rclone-config {
  grid-column: 1 / -1;
}

.backup-remote-account.is-rclone .backup-remote-webdav-field,
.backup-remote-account:not(.is-rclone) .backup-remote-rclone-field {
  display: none;
}

.backup-provider-row-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.backup-provider-test,
.backup-provider-remove {
  min-width: 104px;
}

.backup-provider-test {
  border-color: rgba(67, 210, 138, 0.42);
  background: rgba(67, 210, 138, 0.1);
  color: #d9ffe9;
}

.backup-provider-test:hover:not(:disabled) {
  border-color: rgba(94, 241, 166, 0.72);
  background: rgba(67, 210, 138, 0.18);
}

.backup-provider-remove .ui-icon {
  color: #ffd9de;
}

.backup-settings-footer {
  position: sticky;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 2px -22px 0;
  padding: 12px 22px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(8, 10, 15, 0.82), #080a0f 38%);
}

.backup-settings-footer .section-sub {
  margin: 0;
  min-width: 0;
}

@media (max-width: 900px) {
  .backup-settings-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .backup-field-retention {
    grid-column: 1 / -1;
  }

  .backup-retention-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .backup-automation-grid {
    grid-template-columns: 1fr;
  }

  .backup-remote-account-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .backup-settings-grid,
  .backup-retention-grid,
  .backup-remote-account-grid {
    grid-template-columns: 1fr;
  }

  .backup-remote-head,
  .backup-automation-head,
  .backup-remote-account-top {
    align-items: stretch;
    flex-direction: column;
  }

  .backup-remote-endpoint {
    grid-column: auto;
  }

  .backup-settings-footer {
    align-items: stretch;
    flex-direction: column;
  }
}

.backup-progress-panel {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.backup-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: "Sora", sans-serif;
  font-size: var(--small-text);
}

.backup-progress-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.backup-progress-bar {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2d67b3, #6ce8ff);
  transition: none;
}

.deployment-layout {
  display: grid;
  grid-template-columns: minmax(340px, 0.72fr) minmax(560px, 1.28fr);
  gap: 16px;
  margin: 14px 0;
  align-items: start;
}

#deployments-section.deployment-resourcepack-mode .deployment-flow,
#deployments-section.deployment-resourcepack-mode .deployment-layout > .deployment-panel:first-child {
  display: none;
}

#deployments-section.deployment-resourcepack-mode .deployment-layout {
  grid-template-columns: minmax(0, 1fr);
}

#deployments-section.deployment-resourcepack-mode .deployment-workspace {
  min-height: 0;
}

.deployment-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0 0;
}

.deployment-flow > div {
  min-height: 82px;
  padding: 12px 14px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 8px;
  background: rgba(2, 6, 23, 0.34);
}

.deployment-flow span,
.deployment-flow small {
  display: block;
  color: rgba(203, 213, 225, 0.7);
  font-size: var(--small-text);
  line-height: 1.35;
}

.deployment-flow strong {
  display: block;
  margin: 5px 0 4px;
  color: rgba(248, 250, 252, 0.96);
  font-size: 0.9rem;
}

.deployment-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 0;
  padding: 6px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 8px;
  background: rgba(2, 6, 23, 0.32);
}

.deployment-tab {
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: rgba(203, 213, 225, 0.78);
  font-family: "Sora", sans-serif;
  font-size: var(--small-text);
  font-weight: 750;
}

.deployment-tab:hover {
  border-color: rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.62);
  color: rgba(248, 250, 252, 0.94);
}

.deployment-tab.is-active {
  border-color: rgba(103, 232, 249, 0.36);
  background: rgba(8, 47, 73, 0.54);
  color: rgba(236, 254, 255, 0.98);
}

.deployment-panel {
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.62);
  border-radius: 8px;
  padding: 16px;
}

.deployment-panel-wide {
  grid-column: 1 / -1;
}

.deployment-workspace {
  min-height: 430px;
}

.deployment-tab-panel {
  display: grid;
  gap: 14px;
}

.deployment-panel h3 {
  margin: 0;
  font-size: 1rem;
}

.deployment-help {
  margin: 2px 0 0;
  color: rgba(203, 213, 225, 0.72);
  font-size: var(--small-text);
  line-height: 1.45;
}

.deployment-step-head {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  margin-bottom: 12px;
}

.deployment-step-plain {
  display: block;
}

.deployment-step-head > span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(103, 232, 249, 0.28);
  border-radius: 50%;
  background: rgba(8, 47, 73, 0.38);
  color: rgba(165, 243, 252, 0.95);
  font-size: 0.78rem;
  font-weight: 800;
}

.deployment-step-spaced {
  margin-top: 18px;
}

.deployment-panel-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.deployment-panel-head h3 {
  margin-bottom: 4px;
}

.deployment-panel-head .deployment-help {
  margin: 0;
}

.deployment-check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.deployment-check {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 54px;
  padding: 10px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 8px;
  background: rgba(2, 6, 23, 0.34);
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.deployment-check:hover {
  border-color: rgba(103, 232, 249, 0.42);
  background: rgba(8, 47, 73, 0.32);
}

.deployment-check-dev {
  border-color: rgba(34, 197, 94, 0.24);
}

.deployment-check-dev:hover {
  border-color: rgba(34, 197, 94, 0.48);
  background: rgba(20, 83, 45, 0.22);
}

.deployment-check input[type="checkbox"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.deployment-check-mark {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  border-radius: 6px;
  border: 1px solid rgba(148, 163, 184, 0.34);
  background: rgba(15, 23, 42, 0.9);
}

.deployment-check-mark::after {
  width: 10px;
  height: 6px;
  border-left: 2px solid white;
  border-bottom: 2px solid white;
  content: "";
  opacity: 0;
  transform: rotate(-45deg) translate(1px, -1px);
}

.deployment-check input[type="checkbox"]:checked + .deployment-check-mark {
  border-color: rgba(34, 211, 238, 0.78);
  background: #0e7490;
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.14);
}

.deployment-check input[type="checkbox"]:checked + .deployment-check-mark::after {
  opacity: 1;
}

.deployment-check-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.deployment-check-copy strong {
  color: rgba(248, 250, 252, 0.95);
  font-size: 0.84rem;
  line-height: 1.1;
}

.deployment-check-copy small,
.deployment-action-copy small,
.deployment-switch small {
  color: rgba(203, 213, 225, 0.68);
  font-size: 0.78rem;
  line-height: 1.3;
}

.deployment-target-note {
  margin: 10px 0 0;
  padding: 10px 12px;
  border: 1px solid rgba(34, 197, 94, 0.18);
  border-radius: 8px;
  background: rgba(20, 83, 45, 0.12);
  color: rgba(187, 247, 208, 0.82);
  font-size: var(--small-text);
  line-height: 1.4;
}

.deployment-options {
  display: grid;
  gap: 10px;
  margin-top: 0;
}

.deployment-switch {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 42px;
  color: rgba(248, 250, 252, 0.92);
  cursor: pointer;
}

.deployment-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.deployment-switch > span {
  position: relative;
  width: 36px;
  height: 20px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.96);
  transition: background 160ms ease, border-color 160ms ease;
}

.deployment-switch > span::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(226, 232, 240, 0.9);
  content: "";
  transition: transform 160ms ease, background 160ms ease;
}

.deployment-switch input:checked + span {
  border-color: rgba(34, 211, 238, 0.7);
  background: rgba(14, 116, 144, 0.9);
}

.deployment-switch input:checked + span::after {
  transform: translateX(16px);
  background: white;
}

.deployment-switch strong {
  display: block;
  margin-bottom: 2px;
  font-size: 0.88rem;
}

.deployment-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 0;
}

.deployment-actions-two {
  grid-template-columns: repeat(2, minmax(260px, 1fr));
}

.deployment-action-group {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 8px;
  background: rgba(2, 6, 23, 0.24);
  min-width: 0;
}

.deployment-action-group h4 {
  margin: 0;
  color: rgba(248, 250, 252, 0.95);
  font-size: 0.86rem;
}

.deployment-action-group p {
  margin: -3px 0 2px;
  color: rgba(203, 213, 225, 0.7);
  font-size: var(--small-text);
  line-height: 1.35;
}

.deployment-action {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  min-height: 74px;
  width: 100%;
  padding: 11px 12px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 8px;
  background: rgba(2, 6, 23, 0.48);
  color: rgba(248, 250, 252, 0.94);
  text-align: left;
  cursor: pointer;
}

.deployment-action:hover:not(:disabled) {
  border-color: rgba(103, 232, 249, 0.42);
  background: rgba(8, 47, 73, 0.34);
}

.deployment-action:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.deployment-action-danger {
  border-color: rgba(248, 113, 113, 0.32);
}

.deployment-action-danger:hover:not(:disabled) {
  border-color: rgba(248, 113, 113, 0.62);
  background: rgba(127, 29, 29, 0.22);
}

.deployment-action .ui-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.82);
}

.deployment-action-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.deployment-action-copy strong {
  font-size: 0.9rem;
  line-height: 1.22;
}

.deployment-action-copy small {
  display: block;
  overflow-wrap: anywhere;
}

.deployment-exclusions-panel,
.deployment-reset-panel,
.deployment-placeholder,
.resourcepack-progress-panel {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 8px;
  background: rgba(2, 6, 23, 0.24);
}

.deployment-exclusions-panel {
  position: relative;
}

.deployment-reset-panel {
  margin-top: 12px;
}

.deployment-exclusions-panel .deployment-panel-head {
  align-items: start;
}

.deployment-exclusions-panel #deployment-save-settings {
  min-width: 120px;
  justify-self: end;
}

.deployment-clean-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.deployment-clean-item {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.46);
}

.deployment-clean-item strong {
  font-size: 0.86rem;
  color: rgba(248, 250, 252, 0.94);
}

.deployment-clean-item code {
  overflow-wrap: anywhere;
  color: #ff8ba3;
  font-size: 0.75rem;
}

.deployment-clean-item small {
  color: var(--muted);
  line-height: 1.35;
}

.deployment-placeholder {
  min-height: 220px;
  align-content: center;
}

.server-access-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.server-access-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 8px;
  background: rgba(2, 6, 23, 0.32);
}

.server-access-card-wide {
  grid-column: 1 / -1;
}

.server-access-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.server-access-head > span {
  padding: 4px 7px;
  border: 1px solid currentColor;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 800;
}

.server-access-limits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.server-access-limits label,
.server-whitelist-toolbar label,
#server-whitelist-form label {
  display: grid;
  gap: 5px;
  color: rgba(203, 213, 225, 0.72);
  font-size: var(--small-text);
}

.server-access-limits input {
  min-width: 0;
}

.server-access-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  color: rgba(203, 213, 225, 0.72);
}

.server-access-summary small {
  padding: 7px 8px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.35);
  font-size: var(--small-text);
}

.server-access-actions {
  display: grid;
  grid-template-columns: minmax(180px, auto) minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.server-access-actions small {
  color: rgba(203, 213, 225, 0.72);
}

.server-whitelist-toolbar {
  display: grid;
  grid-template-columns: minmax(160px, 0.5fr) minmax(280px, 1.5fr);
  gap: 10px;
  align-items: end;
}

#server-whitelist-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
}

.server-whitelist-list {
  display: grid;
  max-height: 320px;
  overflow-y: auto;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 8px;
  background: rgba(2, 6, 23, 0.24);
}

.server-whitelist-list > .deployment-help {
  padding: 14px;
}

.server-whitelist-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 48px;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.server-whitelist-item:last-child {
  border-bottom: 0;
}

.server-whitelist-item strong {
  overflow-wrap: anywhere;
  font-size: 0.86rem;
}

@media (max-width: 860px) {
  .server-access-grid,
  .server-whitelist-toolbar,
  #server-whitelist-form,
  .server-access-actions {
    grid-template-columns: 1fr;
  }
}

.resourcepack-progress-panel.status-ok {
  border-color: rgba(34, 197, 94, 0.26);
  background: rgba(20, 83, 45, 0.13);
}

.resourcepack-progress-panel.status-warn {
  border-color: rgba(245, 158, 11, 0.24);
  background: rgba(120, 53, 15, 0.12);
}

.resourcepack-progress-panel.status-err {
  border-color: rgba(248, 113, 113, 0.28);
  background: rgba(127, 29, 29, 0.16);
}

.resourcepack-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: "Sora", sans-serif;
  font-size: var(--small-text);
}

.resourcepack-progress-track {
  height: 11px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.11);
}

.resourcepack-progress-bar {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0ea5e9, #22c55e);
  transition: width 220ms ease;
}

.resourcepack-last-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 26px;
}

.resourcepack-last-meta span,
.resourcepack-last-meta a {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.58);
  color: rgba(226, 232, 240, 0.86);
  font-size: 0.76rem;
  text-decoration: none;
}

.resourcepack-cleanup-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
  padding: 16px;
  border: 1px solid rgba(255, 191, 71, 0.24);
  border-radius: 12px;
  background: rgba(255, 191, 71, 0.06);
}

.resourcepack-cleanup-panel > div {
  min-width: 0;
}

.resourcepack-cleanup-panel .section-sub {
  overflow-wrap: anywhere;
}

#deployment-status {
  margin-top: 10px;
  clear: both;
}

#deployment-excludes {
  width: 100%;
  min-height: 238px;
  resize: vertical;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(2, 6, 23, 0.58);
  color: var(--text);
  padding: 12px;
  font-family: var(--font-mono);
  line-height: 1.45;
}

.deployment-result {
  margin-top: 14px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 8px;
  background: rgba(2, 6, 23, 0.46);
  overflow: hidden;
}

.deployment-summary {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.deployment-log {
  display: grid;
  gap: 4px;
  max-height: 280px;
  overflow: auto;
  padding: 12px 16px;
}

.deployment-log code {
  white-space: pre-wrap;
  word-break: break-word;
  color: rgba(226, 232, 240, 0.82);
}

@media (max-width: 860px) {
  .deployment-flow,
  .deployment-layout {
    grid-template-columns: 1fr;
  }

  .deployment-check-grid {
    grid-template-columns: 1fr;
  }

  .deployment-clean-list {
    grid-template-columns: 1fr;
  }

  .deployment-panel-head {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .deployment-actions {
    grid-template-columns: 1fr;
  }

  .deployment-actions-two {
    grid-template-columns: 1fr;
  }
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.console-modal-overlay {
  background: rgba(2, 3, 5, 0.48);
}

.console-modal-card {
  width: min(960px, calc(100vw - 20px));
  max-height: calc(100vh - 16px);
  overflow: hidden;
  background: linear-gradient(170deg, rgba(13, 8, 10, 0.97), rgba(6, 8, 12, 0.96));
}

.console-modal-card::before {
  background: linear-gradient(170deg, rgba(13, 8, 10, 0.97), rgba(6, 8, 12, 0.96));
}

.console-modal-card .servers-layout {
  margin-top: 0;
}

.console-modal-card .console-single-layout {
  grid-template-columns: minmax(0, 1fr) !important;
}

.console-modal-card .modal-head {
  align-items: flex-start;
}

.console-modal-card .modal-head h3 {
  padding-top: 8px;
}

.console-modal-card .modal-head-actions button {
  min-width: auto;
}

.resource-modal-grid input[type="range"] {
  width: 100%;
  height: 22px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  appearance: none;
  -webkit-appearance: none;
}

.resource-modal-grid input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(45, 103, 179, 0.92), rgba(108, 232, 255, 0.88));
}

.resource-modal-grid input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #6ce8ff;
  margin-top: -5px;
  box-shadow: 0 0 0 4px rgba(108, 232, 255, 0.18);
}

.resource-modal-grid input[type="range"]::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(45, 103, 179, 0.92), rgba(108, 232, 255, 0.88));
}

.resource-modal-grid input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #6ce8ff;
  box-shadow: 0 0 0 4px rgba(108, 232, 255, 0.18);
}

.range-field {
  min-width: 0;
}

.dual-range {
  --range-start: 0%;
  --range-end: 100%;
  position: relative;
  height: 28px;
}

.dual-range::before,
.dual-range::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 11px;
  height: 6px;
  border-radius: 999px;
  pointer-events: none;
}

.dual-range::before {
  background: rgba(255, 255, 255, 0.14);
}

.dual-range::after {
  left: var(--range-start);
  right: calc(100% - var(--range-end));
  background: linear-gradient(90deg, rgba(45, 103, 179, 0.96), rgba(108, 232, 255, 0.95));
  box-shadow: 0 0 14px rgba(108, 232, 255, 0.18);
}

.dual-range input[type="range"] {
  position: absolute;
  inset: 3px 0 0;
  height: 22px;
  pointer-events: none;
  z-index: 2;
}

.dual-range input[type="range"]::-webkit-slider-runnable-track {
  background: transparent;
}

.dual-range input[type="range"]::-moz-range-track {
  background: transparent;
}

.dual-range input[type="range"]::-webkit-slider-thumb {
  pointer-events: auto;
}

.dual-range input[type="range"]::-moz-range-thumb {
  pointer-events: auto;
}

.dual-range input[name="memoryMinMb"] {
  z-index: 3;
}

.slider-value {
  float: right;
  color: #d9f9ff;
  font-family: "Sora", sans-serif;
  font-size: var(--small-text);
}

/* Supremacy theme override */
:root {
  --bg: #050609;
  --panel: #090b10;
  --line: rgba(255, 255, 255, 0.12);
  --text: #f4f6f8;
  --muted: #9ca3af;
  --red: #d42237;
  --red-soft: rgba(212, 34, 55, 0.14);
  --ok: #18d47d;
  --surface: rgba(10, 12, 17, 0.88);
  --surface-strong: rgba(13, 15, 21, 0.96);
  --border-soft: rgba(255, 255, 255, 0.1);
  --border-accent: rgba(255, 255, 255, 0.18);
}

body {
  background: #050609;
}

.bg-glow {
  display: none;
}

.bg-grid {
  opacity: 0.14;
  background-size: 56px 56px;
}

.panel {
  border-color: rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(12, 14, 20, 0.96), rgba(6, 7, 10, 0.98));
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.58), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.view,
.sidebar,
.stat-card,
.card,
.item,
.spark-card,
.server-console-panel,
.server-stat-pill,
.modal-card {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(8, 10, 15, 0.88);
}

.brand-lockup:not(.brand-lockup-login) .brand-logo {
  display: none;
}

.brand-lockup-login {
  justify-content: center;
  text-align: center;
  flex-direction: column;
  align-items: center;
}

.brand-lockup-login .social-links {
  width: 100%;
  justify-content: center;
  margin-inline: auto;
}

.first-login-form {
  width: min(100%, 520px);
  margin-inline: auto;
}

.first-login-form .pin-display,
.first-login-form .pin-pad {
  width: min(100%, 360px);
  margin-inline: auto;
}

.first-login-form .pin-actions {
  width: min(100%, 360px);
  margin-inline: auto;
  justify-content: center;
}

.first-login-form .pin-actions .btn-light {
  min-width: 180px;
}

.first-login-form .pin-pad button {
  min-height: 44px;
  padding-inline: 10px;
}

.brand-lockup-login .brand-logo {
  width: 88px;
  height: 88px;
  border-color: rgba(255, 255, 255, 0.16);
  background: #050609;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.42);
}

.eyebrow,
.slider-value {
  color: var(--red);
}

button,
.btn-light,
.nav-btn,
.monitor-actions .btn-light,
.card-actions .btn-light {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(11, 13, 19, 0.92);
  box-shadow: none;
}

button:hover,
.btn-light:hover,
.nav-btn:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(16, 19, 27, 0.98);
}

.nav-btn.is-active,
.card.is-selected {
  border-color: rgba(212, 34, 55, 0.7);
  background: rgba(212, 34, 55, 0.08);
  box-shadow: inset 0 0 0 1px rgba(212, 34, 55, 0.22);
}

.btn-success,
.btn-success:hover {
  border-color: rgba(24, 212, 125, 0.42);
  background: rgba(24, 212, 125, 0.16);
  color: #c7f8df;
  box-shadow: none;
}

.btn-danger,
.btn-danger:hover,
button[data-service-action="stop"]:not(.is-soft-disabled),
button[data-service-action="kill"]:not(.is-soft-disabled) {
  border-color: rgba(212, 34, 55, 0.55);
  background: rgba(212, 34, 55, 0.16);
  color: #ffd7dc;
  box-shadow: none;
}

.backup-auto-toggle,
.backup-auto-toggle:hover {
  min-width: 154px;
  height: 48px;
  gap: 10px;
  justify-content: center;
  border-radius: 12px;
  padding: 0 14px;
}

.backup-auto-toggle.is-on {
  border-color: rgba(24, 212, 125, 0.58);
  background: rgba(24, 212, 125, 0.16);
  color: #d9ffe9;
}

.backup-auto-toggle.is-on:hover {
  border-color: rgba(24, 212, 125, 0.78);
  background: rgba(24, 212, 125, 0.22);
}

.backup-auto-toggle.is-off {
  border-color: rgba(212, 34, 55, 0.6);
  background: rgba(212, 34, 55, 0.16);
  color: #ffd7dc;
}

.backup-auto-toggle.is-off:hover {
  border-color: rgba(255, 92, 110, 0.76);
  background: rgba(212, 34, 55, 0.22);
}

.backup-auto-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 68px;
  height: 28px;
  flex: 0 0 68px;
  border-radius: 999px;
  border: 1px solid currentColor;
  background: rgba(4, 6, 10, 0.42);
}

.backup-auto-switch-dot {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.16s ease;
}

.backup-auto-switch-state {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding: 0 9px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
}

.backup-auto-toggle.is-on .backup-auto-switch-dot {
  transform: translateX(40px);
}

.backup-auto-toggle.is-on .backup-auto-switch-state {
  justify-content: flex-start;
}

.backup-auto-toggle.is-off .backup-auto-switch-state {
  justify-content: flex-end;
}

.backup-auto-toggle:disabled {
  opacity: 0.55;
}

.tag-online {
  background: rgba(24, 212, 125, 0.12);
  color: #9ff0c8;
  border-color: rgba(24, 212, 125, 0.44);
}

.tag-offline,
.status-err {
  background: rgba(212, 34, 55, 0.1);
  color: #ff9aa7;
  border-color: rgba(212, 34, 55, 0.42);
}

.badge {
  border-color: rgba(212, 34, 55, 0.5);
  color: #ffd7dc;
  background: rgba(212, 34, 55, 0.1);
}

.console-output,
.server-console-panel .console-output {
  border-color: rgba(255, 255, 255, 0.08);
  background: #020304;
  scrollbar-color: rgba(212, 34, 55, 0.78) rgba(6, 7, 10, 0.88);
}

.console-output::-webkit-scrollbar-thumb {
  background: #d42237;
  box-shadow: none;
}

.spark-line {
  filter: none;
}

.modal-card {
  border-color: rgba(255, 255, 255, 0.16);
  background: #080a0f;
}

.modal-card::before {
  background: #080a0f;
  border-left-color: rgba(255, 255, 255, 0.16);
  border-top-color: rgba(255, 255, 255, 0.16);
}

.backup-settings-card {
  border-color: rgba(108, 232, 255, 0.28);
  background:
    radial-gradient(circle at 20% 0%, rgba(108, 232, 255, 0.11), transparent 34%),
    #080a0f;
}

.backup-settings-card .modal-head {
  background: linear-gradient(180deg, rgba(13, 15, 21, 0.98), rgba(8, 10, 15, 0.96));
}

.backup-settings-card .modal-head .btn-light,
.backup-settings-footer .btn-light,
.backup-settings-footer button {
  min-width: 118px;
  border-radius: 12px;
}

#backup-settings-submit {
  border-color: rgba(108, 232, 255, 0.62);
  background: linear-gradient(135deg, rgba(45, 103, 179, 0.86), rgba(8, 69, 103, 0.96));
  color: #ecfbff;
  box-shadow: 0 14px 34px rgba(108, 232, 255, 0.16), inset 0 1px 0 rgba(214, 248, 255, 0.18);
}

#backup-settings-submit:hover {
  border-color: rgba(108, 232, 255, 0.86);
  background: linear-gradient(135deg, rgba(60, 132, 220, 0.92), rgba(11, 89, 132, 0.98));
}

#backup-settings-defaults,
#backup-settings-close {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(13, 16, 23, 0.92);
}

.backup-item {
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}

.backup-item::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  opacity: 0.95;
}

.backup-item-auto {
  border-color: rgba(83, 156, 255, 0.18);
  background:
    linear-gradient(90deg, rgba(83, 156, 255, 0.08), transparent 38%),
    rgba(8, 10, 15, 0.72);
}

.backup-item-auto::before {
  background: linear-gradient(180deg, #5a9cff, #6ce8ff);
}

.backup-item-snapshot {
  border-color: rgba(215, 180, 106, 0.26);
  background:
    linear-gradient(90deg, rgba(215, 180, 106, 0.1), transparent 38%),
    rgba(10, 9, 8, 0.76);
}

.backup-item-snapshot::before {
  background: linear-gradient(180deg, #ffd56b, #d7b46a);
}

.backup-item-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.backup-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex: 0 0 auto;
  flex-wrap: wrap;
}

.backup-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.backup-title-row .item-title {
  margin: 0;
}

.backup-kind-pill {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 3px 9px;
  font-family: "Sora", sans-serif;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
}

.backup-kind-auto {
  color: #d7ecff;
  border-color: rgba(83, 156, 255, 0.42);
  background: rgba(45, 103, 179, 0.18);
}

.backup-kind-snapshot {
  color: #ffe7ad;
  border-color: rgba(215, 180, 106, 0.5);
  background: rgba(132, 110, 71, 0.22);
}

.backup-delete-btn {
  min-width: auto;
  flex: 0 0 auto;
  border-color: rgba(212, 34, 55, 0.58);
  background: rgba(212, 34, 55, 0.12);
  color: #ffd9de;
}

.backup-delete-btn:hover {
  border-color: rgba(255, 92, 114, 0.8);
  background: rgba(212, 34, 55, 0.22);
}

.backup-download-btn {
  height: var(--control-height);
  min-width: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(83, 156, 255, 0.42);
  border-radius: 14px;
  padding: 0 clamp(14px, 0.4vw + 12px, 20px);
  background: rgba(45, 103, 179, 0.16);
  color: #d7ecff;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(45, 103, 179, 0.12), inset 0 1px 0 rgba(214, 236, 255, 0.12);
}

.backup-download-btn:hover {
  border-color: rgba(108, 232, 255, 0.66);
  background: rgba(45, 103, 179, 0.26);
  color: #ffffff;
}

.backup-upload-btn {
  min-width: auto;
  flex: 0 0 auto;
  border-color: rgba(67, 210, 138, 0.48);
  background: rgba(67, 210, 138, 0.12);
  color: #d9ffe9;
}

.backup-upload-btn:hover {
  border-color: rgba(94, 241, 166, 0.72);
  background: rgba(67, 210, 138, 0.22);
  color: #ffffff;
}

.backup-delete-card,
.backup-upload-card,
.backup-download-card {
  width: min(560px, calc(100vw - 28px));
  max-height: min(620px, calc(100vh - 20px));
}

.backup-delete-card {
  border-color: rgba(212, 34, 55, 0.32);
  background:
    radial-gradient(circle at 20% 0%, rgba(212, 34, 55, 0.12), transparent 38%),
    linear-gradient(180deg, rgba(14, 16, 22, 0.98), rgba(6, 7, 11, 0.98));
}

.backup-upload-card {
  left: 50%;
  top: 50%;
  border-color: rgba(67, 210, 138, 0.32);
  background:
    radial-gradient(circle at 20% 0%, rgba(67, 210, 138, 0.11), transparent 38%),
    linear-gradient(180deg, rgba(14, 18, 21, 0.98), rgba(6, 8, 10, 0.98));
  transform: translate(-50%, calc(-50% + 6px)) scale(0.985);
}

.backup-download-card {
  left: 50%;
  top: 50%;
  border-color: rgba(83, 156, 255, 0.32);
  background:
    radial-gradient(circle at 20% 0%, rgba(83, 156, 255, 0.12), transparent 38%),
    linear-gradient(180deg, rgba(13, 17, 24, 0.98), rgba(6, 8, 12, 0.98));
  transform: translate(-50%, calc(-50% + 6px)) scale(0.985);
}

.backup-upload-card.is-open,
.backup-download-card.is-open {
  transform: translate(-50%, -50%) scale(1);
}

.backup-upload-card::before,
.backup-download-card::before {
  display: none;
}

.backup-delete-body,
.backup-upload-body,
.backup-download-body {
  display: grid;
  gap: 14px;
}

.backup-delete-target,
.backup-upload-target,
.backup-download-target {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(3, 4, 7, 0.6);
  padding: 14px;
}

.backup-delete-target strong,
.backup-upload-target strong,
.backup-download-target strong {
  color: #f6f8fb;
  font-family: "Consolas", "Courier New", monospace;
  font-size: clamp(17px, 0.25vw + 15px, 20px);
}

.backup-upload-providers,
.backup-download-choices {
  display: grid;
  gap: 10px;
}

.backup-download-group {
  margin-top: 6px;
  padding: 4px 2px 0;
  color: #ff3d68;
  font-family: "Sora", sans-serif;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.backup-download-group:first-child {
  margin-top: 0;
}

.backup-provider-choice,
.backup-download-choice {
  min-height: 70px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(67, 210, 138, 0.28);
  border-radius: 12px;
  padding: 12px;
  background: rgba(6, 13, 12, 0.72);
  color: #e9fff2;
  text-align: left;
}

.backup-provider-choice:hover:not(:disabled) {
  border-color: rgba(94, 241, 166, 0.7);
  background: rgba(67, 210, 138, 0.16);
}

.backup-download-choice {
  border-color: rgba(83, 156, 255, 0.3);
  background: rgba(7, 12, 22, 0.76);
  color: #e8f3ff;
  text-decoration: none;
}

.backup-download-choice:hover {
  border-color: rgba(108, 232, 255, 0.68);
  background: rgba(45, 103, 179, 0.18);
  color: #ffffff;
}

.backup-provider-choice:disabled {
  opacity: 0.62;
  cursor: progress;
}

.backup-provider-choice-icon,
.backup-download-choice-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(67, 210, 138, 0.34);
  border-radius: 12px;
  background: rgba(67, 210, 138, 0.12);
  color: #8cffbd;
}

.backup-download-choice-icon {
  border-color: rgba(83, 156, 255, 0.36);
  background: rgba(83, 156, 255, 0.13);
  color: #9fd4ff;
}

.backup-provider-choice strong,
.backup-provider-choice small,
.backup-download-choice strong,
.backup-download-choice small {
  display: block;
  min-width: 0;
}

.backup-provider-choice small,
.backup-download-choice small {
  margin-top: 4px;
  color: var(--muted);
  font-size: var(--small-text);
  overflow-wrap: anywhere;
}

.backup-upload-empty {
  border: 1px dashed rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.025);
}

#backup-delete-confirm {
  border-color: rgba(212, 34, 55, 0.72);
  background: linear-gradient(135deg, rgba(212, 34, 55, 0.74), rgba(94, 13, 27, 0.95));
  color: #fff;
  box-shadow: 0 14px 34px rgba(212, 34, 55, 0.2), inset 0 1px 0 rgba(255, 214, 220, 0.18);
}

#backup-delete-confirm:hover:not(:disabled) {
  border-color: rgba(255, 102, 122, 0.86);
  background: linear-gradient(135deg, rgba(232, 49, 70, 0.88), rgba(122, 18, 35, 0.98));
}

.backup-progress-panel {
  border-color: rgba(108, 232, 255, 0.22);
  background:
    linear-gradient(180deg, rgba(45, 103, 179, 0.12), rgba(255, 255, 255, 0.025)),
    rgba(8, 10, 15, 0.86);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.025);
}

.backup-progress-head strong {
  min-width: 52px;
  border: 1px solid rgba(108, 232, 255, 0.42);
  border-radius: 999px;
  padding: 3px 8px;
  color: #d9f9ff;
  background: rgba(45, 103, 179, 0.18);
  text-align: center;
}

.backup-progress-track {
  height: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(3, 4, 7, 0.88);
}

.backup-progress-bar {
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, #2d67b3, #4fb9ef 52%, #6ce8ff);
  box-shadow: 0 0 18px rgba(108, 232, 255, 0.34);
}

.backup-progress-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0 34%, rgba(255, 255, 255, 0.2) 42%, transparent 52% 100%);
  animation: backup-progress-sheen 1.15s linear infinite;
}

@keyframes backup-progress-sheen {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(100%);
  }
}

.server-back-btn,
.server-back-btn:hover {
  border-color: rgba(212, 34, 55, 0.62);
  background: rgba(212, 34, 55, 0.14);
  box-shadow: none;
}

@media (min-width: 1500px) {
  .servers-layout {
    grid-template-columns: minmax(340px, 480px) minmax(0, 1fr);
  }

  .console-modal-card {
    width: min(1040px, calc(100vw - 24px));
  }
}

@media (min-width: 1900px) {
  .panel {
    width: min(2440px, calc(100vw - var(--shell-pad) - var(--shell-pad)));
  }

  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }

  .monitor-subgrid.grid {
    grid-template-columns: repeat(auto-fit, minmax(520px, 1fr));
  }

  .aresshield-layout {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  }
}

@media (max-width: 1100px) {
  .shell {
    width: min(100%, 920px);
    padding: 0;
  }

  .app-shell {
    min-height: 100vh;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    padding: 0 clamp(12px, 2.4vw, 34px) 28px;
    gap: 0;
  }

  .topbar {
    min-height: 58px;
    position: sticky;
    top: 0;
    z-index: 25;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    margin: 0 calc(clamp(12px, 2.4vw, 34px) * -1) 0;
    padding: 0 clamp(12px, 2.4vw, 34px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(8, 9, 12, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  .sidebar-toggle {
    display: inline-flex;
    width: 40px;
    min-width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 105, 124, 0.24);
    border-radius: 13px;
    color: #f4f7ff;
    background: rgba(13, 16, 22, 0.82);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  }

  .sidebar-toggle:hover {
    border-color: rgba(255, 105, 124, 0.48);
    background: rgba(27, 15, 20, 0.94);
    transform: none;
  }

  .app-shell.sidebar-open .sidebar-toggle {
    border-color: rgba(255, 105, 124, 0.82);
    color: #fff;
    background: linear-gradient(135deg, rgba(183, 58, 72, 0.48), rgba(80, 22, 31, 0.92));
    box-shadow: 0 12px 28px rgba(183, 58, 72, 0.22), inset 0 1px 0 rgba(255, 190, 200, 0.18);
  }

  .topbar > div:first-of-type {
    min-width: 0;
    text-align: center;
  }

  .topbar .eyebrow {
    display: none;
  }

  .topbar h1 {
    font-size: clamp(16px, 2vw, 21px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .topbar-title-default {
    display: none;
  }

  .topbar-title-mobile-wrap {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    overflow: hidden;
    vertical-align: middle;
  }

  .topbar-title-mobile {
    min-width: 0;
    display: inline-block;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .topbar-state-mobile {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    border: 1px solid rgba(23, 201, 100, 0.4);
    border-radius: 999px;
    padding: 4px 8px;
    color: #8af2bc;
    background: rgba(23, 201, 100, 0.15);
    font-family: "Manrope", sans-serif;
    font-size: 0.7rem;
    font-weight: 900;
    line-height: 1;
  }

  .topbar-state-mobile.is-offline {
    border-color: rgba(214, 40, 57, 0.42);
    color: #ff9ca6;
    background: rgba(214, 40, 57, 0.12);
  }

  .topbar-uptime-mobile {
    display: inline-block;
    flex: 0 0 auto;
    color: var(--muted);
    font-family: "Manrope", sans-serif;
    font-size: 0.74rem;
    font-weight: 900;
  }

  .topbar-state-mobile.hidden,
  .topbar-uptime-mobile.hidden {
    display: none;
  }

  .topbar-actions {
    gap: 0;
    padding: 4px;
    border-radius: 15px;
  }

  .online-sessions-label,
  #logout-btn span:last-child {
    display: none;
  }

  .online-sessions {
    display: none;
  }

  .topbar-account {
    min-height: 40px;
    margin-left: 0;
    padding: 0 8px 0 2px;
    border-left: 0;
  }

  .topbar-account-label {
    display: none;
  }

  .topbar-account-name {
    max-width: min(110px, 18vw);
    font-size: 0.74rem;
  }

  .topbar-avatar {
    width: 40px;
    height: 40px;
    display: flex;
    border-radius: 13px;
  }

  .topbar-avatar .mc-head-frame,
  .topbar-avatar .mc-head-canvas,
  .topbar-avatar .mc-head-surface {
    width: 30px;
    height: 30px;
  }

  #logout-btn {
    width: 40px;
    min-width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 0 11px 11px 0;
  }

  .online-sessions-btn {
    min-height: 40px;
    padding: 0 10px;
    border-radius: 13px;
  }

  .layout {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .app-shell.sidebar-open::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 23;
    background: rgba(4, 3, 5, 0.7);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
  }

  .sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 26;
    width: min(252px, 86vw);
    max-height: 100vh;
    overflow: auto;
    border-top: 0;
    border-bottom: 0;
    border-left: 0;
    border-right: 1px solid rgba(183, 58, 72, 0.3);
    border-radius: 0;
    padding: 8px;
    gap: 8px;
    background:
      linear-gradient(180deg, rgba(26, 10, 15, 0.98), rgba(8, 9, 12, 0.99) 34%, rgba(11, 7, 10, 0.99)),
      rgba(8, 9, 12, 0.99);
    transform: translateX(-104%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.22s ease, opacity 0.18s ease;
    box-shadow: 18px 0 60px rgba(0, 0, 0, 0.56), inset -1px 0 0 rgba(255, 190, 200, 0.04);
  }

  .app-shell.sidebar-open .sidebar {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
  }

  .sidebar-mobile-head {
    display: grid;
    gap: 14px;
    padding: 6px 0 16px;
    border-bottom: 1px solid rgba(183, 58, 72, 0.24);
  }

  .sidebar-mobile-top,
  .sidebar-server-row,
  .sidebar-server-controls,
  .sidebar-mobile-icons {
    display: flex;
    align-items: center;
  }

  .sidebar-mobile-top {
    justify-content: space-between;
    gap: 10px;
  }

  .sidebar-mobile-logo {
    width: 34px;
    height: 34px;
    object-fit: contain;
  }

  .sidebar-mobile-icons,
  .sidebar-server-controls {
    gap: 8px;
  }

  .sidebar-icon-btn,
  .sidebar-control-btn {
    width: 32px;
    min-width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 105, 124, 0.18);
    border-radius: 999px;
    color: #d7deeb;
    background: rgba(183, 58, 72, 0.11);
    padding: 0;
    box-shadow: none;
  }

  .sidebar-icon-btn:hover,
  .sidebar-control-btn:hover {
    transform: none;
    border-color: rgba(255, 105, 124, 0.36);
    background: rgba(183, 58, 72, 0.2);
  }

  .sidebar-control-btn[data-service-action="start"]:not(:disabled) {
    color: #9ff2c0;
    background: rgba(23, 201, 100, 0.12);
  }

  .sidebar-control-btn[data-service-action="restart"]:not(:disabled) {
    color: #dfe7f4;
  }

  .sidebar-control-danger:not(:disabled) {
    color: #ffd0d6;
    background: rgba(214, 40, 57, 0.28);
  }

  .sidebar-server-controls {
    margin-top: 10px;
  }

  .sidebar-server-row {
    justify-content: space-between;
    gap: 8px;
  }

  .sidebar-server-row strong {
    min-width: 0;
    overflow: hidden;
    color: #f5f7fb;
    font-family: "Sora", sans-serif;
    font-size: 1.03rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .sidebar-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #4aff94;
    font-size: 0.78rem;
    font-weight: 800;
    white-space: nowrap;
  }

  .sidebar-status-pill.is-offline {
    color: #ff9ca6;
  }

  .sidebar-status-pill.is-offline .online-dot {
    background: #ff5c70;
    box-shadow: 0 0 12px rgba(255, 92, 112, 0.62);
  }

  .sidebar-server-address,
  .sidebar-server-uptime {
    overflow: hidden;
    color: #9fb0cc;
    font-size: 0.85rem;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .sidebar-server-uptime {
    color: #7f8da5;
    font-size: 0.78rem;
  }

  .sidebar-group-label {
    display: block;
    margin: 18px 0 4px;
    color: #ffd7dc;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
  }

  .nav-btn {
    height: 42px;
    min-width: 100%;
    border: 0;
    border-left: 3px solid transparent;
    border-radius: 0 18px 18px 0;
    padding: 0 14px 0 16px;
    color: #cbd3e0;
    background: transparent;
  }

  .nav-btn:hover {
    color: #fff;
    background: rgba(183, 58, 72, 0.12);
  }

  .nav-btn.nav-external {
    border-color: transparent;
    border-left-color: transparent;
    background: transparent;
  }

  .nav-btn.nav-external:hover {
    border-left-color: transparent;
    background: rgba(183, 58, 72, 0.12);
  }

  .nav-btn.is-active {
    border-left-color: #ff5c70;
    color: #fff;
    background: linear-gradient(90deg, rgba(183, 58, 72, 0.42), rgba(72, 18, 27, 0.78));
    box-shadow: inset 0 1px 0 rgba(255, 190, 200, 0.1), 0 10px 24px rgba(183, 58, 72, 0.16);
  }

  .nav-btn.nav-external.is-active,
  .nav-btn.nav-external[aria-expanded="true"] {
    border-left-color: #ff5c70;
    color: #fff;
    background: linear-gradient(90deg, rgba(183, 58, 72, 0.42), rgba(72, 18, 27, 0.78));
  }

  .server-management-view {
    padding-top: 10px;
    padding-bottom: 24px;
    min-height: auto;
  }

  .server-management-head {
    display: none;
    margin-bottom: 0;
  }

  .server-management-titlebar {
    align-items: center;
    gap: 10px;
    min-width: 0;
  }

  .server-management-titlebar > div {
    display: none;
  }

  .server-title-line {
    justify-content: center;
  }

  .server-management-titlebar h2 {
    font-size: clamp(18px, 2.6vw, 24px);
    text-align: center;
  }

  .server-management-head .section-sub {
    margin-top: 6px;
    justify-content: center;
  }

  .server-uptime {
    text-align: center;
    font-size: 0.82rem;
  }

  .server-back-btn {
    display: none;
  }

  .server-back-btn span:last-child {
    display: none;
  }

  .server-management-actions {
    justify-content: flex-end;
    gap: 6px;
    pointer-events: auto;
  }

  .server-management-actions button {
    width: 36px;
    min-width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 12px;
    background: rgba(5, 7, 10, 0.72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  .server-management-actions button span:last-child {
    display: none;
  }

  .server-console-panel {
    border-radius: 13px;
    margin-top: 0;
  }

  .console-mobile-actions {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 7;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    overflow-x: auto;
    max-width: calc(100% - 24px);
    padding: 0;
    background: transparent;
    scrollbar-width: none;
  }

  .console-mobile-actions::-webkit-scrollbar {
    display: none;
  }

  .console-mobile-actions .server-management-actions {
    display: flex;
    flex-wrap: nowrap;
    min-width: max-content;
    margin-left: auto;
  }

  .server-console-panel .console-output {
    height: calc(100vh - 184px);
    min-height: 430px;
    padding-top: 58px;
  }

  .server-console-panel .console-form {
    grid-template-columns: minmax(0, 1fr) auto auto auto;
  }

  .console-form button[type="submit"] {
    min-width: 46px;
    width: 46px;
    padding: 0;
  }

  .console-form button[type="submit"] span:last-child {
    display: none;
  }

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

  .server-stat-pill {
    min-height: 52px;
    padding: 10px 12px;
  }

  .server-management-charts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }

  .server-management-charts .spark-card {
    min-height: 230px;
    padding: 14px;
  }

  .server-management-charts .spark-svg {
    height: 150px;
  }

  .server-floating-controls {
    display: none;
  }
}

@media (max-width: 860px) {
  .panel {
    padding: 16px;
  }

  .brand-lockup {
    align-items: flex-start;
  }

  .topbar-actions {
    width: auto;
    justify-content: flex-end;
    flex-wrap: wrap;
  }

  .online-sessions-menu {
    left: 0;
    right: auto;
  }

  .servers-layout {
    grid-template-columns: 1fr;
  }

  .logger-layout {
    grid-template-columns: 1fr;
  }

  .logger-topbar {
    grid-template-columns: 1fr;
  }

  .logger-list {
    max-height: none;
  }

  .machine-console-layout {
    grid-template-columns: 1fr;
  }

  .machine-console-toolbar {
    grid-template-columns: 1fr;
  }

  .machine-console-output-panel {
    min-height: 460px;
  }

  .network-diagnostics-head {
    align-items: stretch;
    flex-direction: column;
  }

  .network-diagnostics-actions {
    width: 100%;
  }

  .network-diagnostics-actions select,
  .network-diagnostics-actions button {
    flex: 1 1 0;
  }

  .network-diagnostics-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .machine-vscode-head {
    align-items: stretch;
    flex-direction: column;
  }

  .machine-vscode-actions {
    width: 100%;
  }

  .machine-vscode-actions button {
    flex: 1 1 0;
  }

  .machine-vscode-frame {
    height: 72vh;
    min-height: 520px;
  }

  .monitor-subgrid.grid {
    grid-template-columns: 1fr;
  }

  .server-files-panel {
    grid-template-columns: 1fr;
  }

  .files-sidebar {
    max-height: none;
  }

  .files-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .files-breadcrumb {
    width: 100%;
  }

  .files-toolbar-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .files-toolbar-actions button:not(.btn-icon-only) {
    flex: 1 1 150px;
  }

  .files-table-head,
  .files-row {
    grid-template-columns: 28px minmax(0, 1fr) 72px;
  }

  .files-table-head {
    padding-left: 14px;
  }

  .files-table-head span:nth-child(3),
  .files-table-head span:nth-child(4),
  .files-row > .files-row-meta:nth-of-type(2),
  .files-row-more {
    display: none;
  }

  .files-row-main {
    padding-left: 0;
  }

  .files-editor-shell {
    min-height: 680px;
  }

  .files-editor-topbar {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .files-editor-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .files-editor-actions button {
    flex: 1;
  }

  .files-codex-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .files-codex-panel span {
    white-space: normal;
  }

  .console-toolbar {
    align-items: stretch;
  }

  .console-power-actions {
    width: 100%;
  }

  .console-power-actions button {
    flex: 1 1 120px;
  }

  .console-modal-card {
    width: calc(100vw - 12px);
    max-height: calc(100vh - 12px);
  }

  .aresshield-item-head {
    flex-direction: column;
  }

  .aresshield-tags {
    justify-content: flex-start;
  }

  .app-item-head,
  .aresshield-log-head {
    flex-direction: column;
  }

  .user-account-item {
    grid-template-columns: 1fr;
  }

  .user-account-actions {
    justify-content: flex-start;
  }

  .user-account-actions .user-action-icon {
    flex: 0 0 36px;
  }

  .app-actions,
  .inline-form-actions {
    width: 100%;
  }
}

@media (max-width: 700px) {
  .server-management-stats,
  .server-management-charts {
    grid-template-columns: 1fr;
  }

  .server-management-charts .spark-card {
    min-height: 210px;
  }

  .server-management-charts .spark-svg {
    height: 132px;
  }

  .console-automation-grid,
  .console-filter-add-row,
  .console-auto-message-add-row {
    grid-template-columns: 1fr;
  }
}

/* Final blue resource controls override. Kept last to beat the Supremacy red theme rules. */
.resource-modal-grid .slider-value {
  color: #6ce8ff !important;
}

.resource-modal-grid input[type="range"]::-webkit-slider-runnable-track {
  background: linear-gradient(90deg, rgba(45, 103, 179, 0.96), rgba(108, 232, 255, 0.92)) !important;
}

.resource-modal-grid input[type="range"]::-webkit-slider-thumb {
  border-color: #6ce8ff !important;
  box-shadow: 0 0 0 4px rgba(108, 232, 255, 0.2), 0 0 14px rgba(108, 232, 255, 0.4) !important;
}

.resource-modal-grid input[type="range"]::-moz-range-track {
  background: linear-gradient(90deg, rgba(45, 103, 179, 0.96), rgba(108, 232, 255, 0.92)) !important;
}

.resource-modal-grid input[type="range"]::-moz-range-thumb {
  border-color: #6ce8ff !important;
  box-shadow: 0 0 0 4px rgba(108, 232, 255, 0.2), 0 0 14px rgba(108, 232, 255, 0.4) !important;
}

.resource-modal-grid .dual-range::after {
  background: linear-gradient(90deg, rgba(45, 103, 179, 0.98), rgba(108, 232, 255, 0.96)) !important;
  box-shadow: 0 0 14px rgba(108, 232, 255, 0.22) !important;
}

.files-row > button.files-row-more {
  width: 30px !important;
  min-width: 30px !important;
  height: 30px !important;
  min-height: 30px !important;
  justify-self: center;
  border: 0 !important;
  border-radius: 8px !important;
  background: transparent !important;
  color: #8e97a8 !important;
  box-shadow: none !important;
  padding: 0 !important;
  line-height: 1 !important;
}

.files-row > button.files-row-more:hover,
.files-row > button.files-row-more:focus-visible {
  background: rgba(255, 255, 255, 0.055) !important;
  color: #f4f6fb !important;
}

#candidatures-section {
  min-width: 0;
  overflow: hidden;
}

.candidatures-layout {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(280px, 380px) minmax(0, 1fr);
  align-items: start;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

.candidatures-list {
  min-width: 0;
  max-width: 100%;
  max-height: calc(100vh - 260px);
  overflow: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(212, 34, 55, 0.78) rgba(6, 7, 10, 0.88);
}

.candidature-list-card {
  display: grid;
  gap: 0;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.candidature-list-item {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 6px 8px;
  text-align: left;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  cursor: pointer;
  overflow: hidden;
}

.candidature-row-side {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

.candidature-row-votes {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  flex: 0 0 auto;
}

.candidature-row-votes > .vote-pill {
  min-width: 38px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 0 5px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  line-height: 1;
}

.candidature-row-votes .vote-icon {
  width: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 13px;
  font-size: 11px;
  line-height: 1;
}

.candidature-row-votes .vote-count {
  min-width: 8px;
  display: inline-block;
  color: currentColor;
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1;
  text-align: center;
}

.candidature-row-votes .vote-up {
  color: #9ff0c8;
  border-color: rgba(24, 212, 125, 0.38);
  background: rgba(24, 212, 125, 0.1);
}

.candidature-row-votes .vote-down {
  color: #ff9aa7;
  border-color: rgba(212, 34, 55, 0.42);
  background: rgba(212, 34, 55, 0.1);
}

.candidature-row-side .tag {
  padding: 4px 7px;
  font-size: 0.66rem;
  white-space: nowrap;
}

.candidature-row-delete {
  width: 25px;
  height: 25px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 25px;
  border: 1px solid rgba(212, 34, 55, 0.42);
  border-radius: 7px;
  color: #ff9aa7;
  background: rgba(212, 34, 55, 0.1);
  cursor: pointer;
  transition: border-color 0.14s ease, background 0.14s ease, color 0.14s ease, transform 0.14s ease;
}

.candidature-row-delete svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  pointer-events: none;
}

.candidature-row-delete:hover,
.candidature-row-delete:focus-visible {
  border-color: rgba(255, 92, 110, 0.78);
  color: #ffd7dc;
  background: rgba(212, 34, 55, 0.24);
  outline: none;
  transform: translateY(-1px);
}

.candidature-row-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.candidature-row-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  font-size: 16px;
  cursor: pointer;
  transition: transform 0.14s ease, background 0.14s ease, border-color 0.14s ease;
}

.candidature-row-icon:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.08);
}

.candidature-row-icon.vote-up {
  border-color: rgba(23, 201, 100, 0.42);
  background: rgba(23, 201, 100, 0.1);
}

.candidature-row-icon.vote-down {
  border-color: rgba(255, 23, 69, 0.46);
  background: rgba(255, 23, 69, 0.13);
}

.candidature-row-icon.delete {
  border-color: rgba(255, 255, 255, 0.16);
}

.candidature-list-item.is-active {
  border-color: rgba(214, 40, 57, 0.5);
  background: linear-gradient(135deg, rgba(183, 58, 72, 0.18), rgba(15, 18, 25, 0.9));
}

.candidature-list-main,
.candidature-player {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.candidature-list-copy {
  display: grid;
  min-width: 0;
  max-width: 100%;
}

.candidature-list-main strong,
.candidature-list-main small,
.candidature-list-main em {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.candidature-list-main strong {
  font-size: 0.78rem;
  line-height: 1.15;
}

.candidature-list-main small,
.candidature-list-main em {
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.15;
  font-style: normal;
  max-width: 100%;
}

.candidature-list-main em {
  display: none;
}

.candidature-head {
  position: relative;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  overflow: hidden;
  display: grid;
  place-items: center;
  color: var(--text);
  font-weight: 900;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.candidature-head img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
}

.candidature-detail {
  min-height: 0;
  min-width: 0;
  display: grid;
  gap: 12px;
  position: sticky;
  top: 12px;
}

#candidature-detail-body {
  min-width: 0;
  display: grid;
  gap: 12px;
}

.candidature-empty {
  min-height: 220px;
  display: grid;
  place-content: center;
  text-align: center;
}

.candidature-inline-detail {
  display: none !important;
  margin: -2px 0 14px 0;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-top: 0;
  border-radius: 0 0 12px 12px;
  background: rgba(255, 255, 255, 0.025);
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.candidature-detail-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 12px;
  min-width: 0;
}

.candidature-detail-copy {
  display: grid;
  min-width: 0;
}

.candidature-detail-copy .item-title,
.candidature-detail-copy .item-sub {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.candidature-content {
  max-height: 260px;
  overflow: auto;
  max-width: 100%;
  min-width: 0;
  padding: 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.18);
  color: var(--text);
  line-height: 1.65;
  font-size: 0.82rem;
  font-weight: 600;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
  scrollbar-width: thin;
  scrollbar-color: rgba(212, 34, 55, 0.78) rgba(6, 7, 10, 0.88);
}

.candidatures-list::-webkit-scrollbar,
.candidature-content::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.candidatures-list::-webkit-scrollbar-track,
.candidature-content::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(6, 7, 10, 0.88);
}

.candidatures-list::-webkit-scrollbar-thumb,
.candidature-content::-webkit-scrollbar-thumb {
  border: 2px solid rgba(6, 7, 10, 0.88);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(212, 34, 55, 0.9), rgba(126, 24, 38, 0.95));
}

.candidatures-list::-webkit-scrollbar-thumb:hover,
.candidature-content::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(255, 74, 96, 0.98), rgba(212, 34, 55, 0.95));
}

.candidature-detail .candidature-content {
  max-height: clamp(300px, 48vh, 620px);
  font-size: 0.9rem;
}

.candidature-content * {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal !important;
}

.candidature-content p,
.candidature-content div,
.candidature-content blockquote,
.candidature-content ul,
.candidature-content ol {
  margin: 0 0 0.75em;
}

.candidature-content p:last-child,
.candidature-content div:last-child,
.candidature-content ul:last-child,
.candidature-content ol:last-child {
  margin-bottom: 0;
}

.candidature-content h1,
.candidature-content h2,
.candidature-content h3 {
  margin: 0.65em 0 0.45em;
  line-height: 1.25;
  font-family: "Sora", sans-serif;
  font-weight: 900;
}

.candidature-content h1:first-child,
.candidature-content h2:first-child,
.candidature-content h3:first-child {
  margin-top: 0;
}

.candidature-content h1 {
  font-size: 1.55rem;
}

.candidature-content h2 {
  font-size: 1.3rem;
}

.candidature-content h3 {
  font-size: 1.1rem;
}

.candidature-content strong,
.candidature-content b {
  font-weight: 900;
}

.candidature-content em,
.candidature-content i {
  font-style: italic;
}

.candidature-content u {
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.candidature-content ul,
.candidature-content ol {
  padding-left: 1.6em;
}

.candidature-content blockquote {
  padding: 0.65em 0.9em;
  border-left: 3px solid rgba(212, 34, 55, 0.72);
  background: rgba(212, 34, 55, 0.07);
}

.candidature-content pre,
.candidature-content code {
  white-space: pre-wrap !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.candidature-content a {
  color: #ffc7cf;
}

.candidature-vote-strip {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.candidature-vote-strip small {
  color: var(--muted);
  font-size: 0.82rem;
}

.candidature-vote-btn {
  min-width: 58px;
  min-height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-weight: 900;
  cursor: pointer;
}

.candidature-vote-btn.vote-up {
  border-color: rgba(23, 201, 100, 0.42);
  background: rgba(23, 201, 100, 0.1);
}

.candidature-vote-btn.vote-down {
  border-color: rgba(255, 23, 69, 0.46);
  background: rgba(255, 23, 69, 0.13);
}

.candidature-vote-btn:hover {
  transform: translateY(-1px);
}

.candidature-reactions {
  display: grid;
  gap: 8px;
}

.candidature-comments {
  display: grid;
  gap: 8px;
}

.candidature-reaction {
  padding: 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
}

.candidature-reaction div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.84rem;
}

.candidature-reaction p {
  margin: 8px 0 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.candidature-staff-actions {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.candidature-staff-actions textarea {
  resize: vertical;
  min-height: 78px;
  max-height: 140px;
}

@media (max-width: 980px) {
  .candidatures-layout {
    grid-template-columns: 1fr;
  }

  .candidatures-list {
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  .candidature-detail {
    position: static;
  }
}

@media (max-width: 760px) {

  .candidature-list-item {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .candidature-row-side {
    justify-content: space-between;
    width: 100%;
  }

  .candidature-detail-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .candidature-staff-actions .inline-form-actions {
    display: grid;
  }
}

.hwid-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(360px, 1.4fr);
  gap: 18px;
  align-items: start;
}

.hwid-hash {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
  word-break: break-all;
  color: var(--muted);
}

.hwid-search {
  min-height: var(--control-height);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 0 12px;
  background: rgba(5, 6, 9, 0.72);
}

.hwid-search .ui-icon {
  width: 18px;
  height: 18px;
  color: var(--muted);
}

.hwid-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
}

.hwid-search:focus-within {
  border-color: rgba(214, 40, 57, 0.5);
  box-shadow: 0 0 0 3px rgba(214, 40, 57, 0.12);
}

.hwid-player-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.hwid-player-pill {
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.78rem;
  font-weight: 800;
}

.hwid-info-card {
  left: 50%;
  top: 50%;
  width: min(860px, calc(100vw - 24px));
  max-height: min(760px, calc(100vh - 24px));
  border-color: rgba(214, 40, 57, 0.34);
  background:
    radial-gradient(circle at 18% 0%, rgba(214, 40, 57, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(13, 15, 20, 0.98), rgba(5, 6, 9, 0.98));
  transform: translate(-50%, calc(-50% + 6px)) scale(0.985);
}

.hwid-info-card.is-open {
  transform: translate(-50%, -50%) scale(1);
}

.hwid-info-card::before {
  display: none;
}

.hwid-info-body {
  display: grid;
  gap: 14px;
}

.hwid-info-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.035);
}

.hwid-info-summary p,
.hwid-info-section h4 {
  margin: 0;
}

.hwid-info-section {
  display: grid;
  gap: 10px;
}

.hwid-reason-list {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.hwid-reason-list li + li {
  margin-top: 6px;
}

.hwid-evidence-item {
  border-color: rgba(214, 40, 57, 0.22);
}

.hwid-process-details {
  margin-top: 8px;
  display: grid;
  gap: 2px;
}

.hwid-process-value {
  overflow-wrap: anywhere;
  word-break: break-word;
}

@media (max-width: 980px) {
  .hwid-layout {
    grid-template-columns: 1fr;
  }

  .hwid-info-summary {
    grid-template-columns: 1fr;
  }
}

.deployment-season-setting { margin-top: 12px; padding: 12px; display: grid; grid-template-columns: minmax(0, 1fr) auto 82px auto; align-items: center; gap: 10px; border: 1px solid rgba(103, 232, 249, .22); border-radius: 8px; background: rgba(8, 47, 73, .22); }
.deployment-season-setting > div { display: grid; gap: 3px; }
.deployment-season-setting small { color: rgba(203, 213, 225, .68); font-size: var(--small-text); }
.deployment-season-setting label { color: rgba(226, 232, 240, .8); font-size: var(--small-text); font-weight: 700; }
.deployment-season-setting input { width: 82px; height: 36px; padding: 0 10px; color: #f8fafc; border: 1px solid rgba(148, 163, 184, .28); border-radius: 7px; background: rgba(2, 6, 23, .78); }
 (max-width: 760px) { .deployment-season-setting { grid-template-columns: 1fr 82px; } .deployment-season-setting > div { grid-column: 1 / -1; } .deployment-season-setting label { display: none; } }

.connection-history-toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(190px, 260px);
  gap: 12px;
  margin: 16px 0 10px;
}

.connection-history-tabs {
  display: inline-flex;
  gap: 4px;
  margin: 14px 0 4px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(3, 5, 9, 0.7);
}

.connection-history-tabs button {
  min-height: 38px;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 0 15px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 850;
  cursor: pointer;
}

.connection-history-tabs button:hover {
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.05);
}

.connection-history-tabs button.is-active {
  border-color: rgba(214, 40, 57, 0.38);
  background: rgba(214, 40, 57, 0.16);
  color: #fecdd3;
}

.connection-history-staff-head {
  margin-top: 18px;
}

.current-panel-connections {
  display: grid;
  gap: 12px;
  margin: 18px 0;
  padding: 16px;
  border: 1px solid rgba(52, 211, 153, 0.24);
  border-radius: 12px;
  background: rgba(6, 78, 59, 0.1);
}

.current-panel-connections-head,
.current-panel-connection,
.current-panel-connection-identity,
.current-panel-connection-details {
  display: flex;
  align-items: center;
}

.current-panel-connections-head,
.current-panel-connection {
  justify-content: space-between;
  gap: 16px;
}

.current-panel-connections-head h3 {
  margin: 0 0 4px;
}

.current-panel-connections-head > strong {
  color: #6ee7b7;
  white-space: nowrap;
}

.current-panel-connections-list {
  display: grid;
  gap: 9px;
}

.current-panel-connection {
  border-left: 3px solid rgba(52, 211, 153, 0.46);
}

.current-panel-connection.is-current {
  background: rgba(6, 95, 70, 0.18);
}

.current-panel-connection-identity {
  gap: 10px;
  min-width: 210px;
}

.current-panel-connection-avatar {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 10px;
}

.current-panel-connection-avatar .mc-head-frame,
.current-panel-connection-avatar .mc-head-canvas,
.current-panel-connection-avatar .mc-head-surface {
  width: 36px;
  height: 36px;
}

.discord-link-admin-fields {
  margin-top: 10px;
}

.current-panel-connection-identity > div:last-child {
  display: grid;
  gap: 3px;
}

.current-panel-connection-identity strong {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.current-panel-connection-identity span,
.current-panel-connection-details {
  color: var(--muted);
  font-size: 0.8rem;
}

.current-panel-connection-details {
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 9px 18px;
}

.current-panel-connection-details > span {
  display: grid;
  gap: 3px;
}

.current-panel-connection-details b {
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.staff-activity-panel {
  display: grid;
  gap: 14px;
  margin: 18px 0;
  padding: 18px;
  border: 1px solid rgba(214, 40, 57, 0.28);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(214, 40, 57, 0.09), transparent 44%),
    rgba(8, 10, 15, 0.72);
}

.staff-activity-head,
.staff-activity-card-main,
.staff-activity-identity {
  display: flex;
  align-items: center;
}

.staff-activity-head,
.staff-activity-card-main {
  justify-content: space-between;
  gap: 16px;
}

.staff-activity-head h3 {
  margin: 0 0 4px;
}

.staff-activity-head > strong {
  color: #fda4af;
  font-size: 0.8rem;
  text-align: right;
  white-space: nowrap;
}

.staff-activity-stats {
  margin: 0;
}

.staff-activity-search {
  display: grid;
  gap: 6px;
  max-width: 440px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.staff-activity-search input {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9px;
  padding: 0 12px;
  background: rgba(3, 5, 9, 0.78);
  color: var(--text);
  font: inherit;
}

.staff-activity-search input:focus {
  border-color: rgba(214, 40, 57, 0.56);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(214, 40, 57, 0.12);
}

.staff-activity-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.staff-activity-card {
  display: grid;
  align-content: start;
  gap: 14px;
  min-width: 0;
  border-left: 3px solid rgba(148, 163, 184, 0.24);
}

.staff-activity-card.is-online {
  border-left-color: rgba(52, 211, 153, 0.62);
  background: rgba(6, 78, 59, 0.08);
}

.staff-activity-identity {
  gap: 11px;
  min-width: 0;
}

.staff-activity-identity > div:last-child {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.staff-activity-identity strong {
  overflow-wrap: anywhere;
}

.staff-activity-identity span {
  color: var(--muted);
  font-size: 0.76rem;
}

.staff-activity-avatar,
.staff-activity-avatar .mc-head-frame,
.staff-activity-avatar canvas {
  width: 40px;
  height: 40px;
}

.staff-activity-avatar {
  flex: 0 0 40px;
}

.staff-activity-badge {
  flex: 0 0 auto;
  padding: 5px 9px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 999px;
  color: #cbd5e1;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.staff-activity-badge.is-active {
  border-color: rgba(52, 211, 153, 0.38);
  background: rgba(16, 185, 129, 0.14);
  color: #6ee7b7;
}

.staff-activity-badge.is-afk {
  border-color: rgba(251, 191, 36, 0.38);
  background: rgba(245, 158, 11, 0.13);
  color: #fcd34d;
}

.staff-activity-badge.is-observing {
  border-color: rgba(103, 232, 249, 0.34);
  background: rgba(8, 145, 178, 0.14);
  color: #a5f3fc;
}

.staff-activity-badge.is-offline {
  color: #94a3b8;
}

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

.staff-activity-totals > span {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  background: rgba(2, 6, 23, 0.34);
}

.staff-activity-totals b,
.staff-activity-session-row b {
  color: rgba(255, 255, 255, 0.46);
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.staff-activity-totals strong {
  color: #f8fafc;
  font-size: 0.9rem;
}

.staff-activity-actions {
  display: flex;
  justify-content: flex-end;
}

.staff-activity-reminder-button {
  min-width: 190px;
  border-color: rgba(214, 40, 57, 0.4);
  background: rgba(214, 40, 57, 0.12);
  color: #fecdd3;
}

.staff-activity-reminder-button:hover:not(:disabled) {
  border-color: rgba(251, 113, 133, 0.65);
  background: rgba(214, 40, 57, 0.2);
}

.staff-activity-reminder-button.is-sent {
  border-color: rgba(52, 211, 153, 0.42);
  background: rgba(16, 185, 129, 0.14);
  color: #6ee7b7;
}

.staff-activity-reminder-button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.staff-activity-history {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 10px;
}

.staff-activity-history summary {
  cursor: pointer;
  color: #fda4af;
  font-size: 0.76rem;
  font-weight: 800;
  user-select: none;
}

.staff-activity-session-list {
  display: grid;
  gap: 7px;
  margin-top: 10px;
}

.staff-activity-session-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.18);
  color: var(--muted);
  font-size: 0.72rem;
}

.staff-activity-session-row > span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.connection-history-toolbar label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.connection-history-toolbar input,
.connection-history-toolbar select {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9px;
  padding: 0 12px;
  background: rgba(3, 5, 9, 0.74);
  color: var(--text);
  font: inherit;
}

.connection-history-toolbar input:focus,
.connection-history-toolbar select:focus {
  border-color: rgba(214, 40, 57, 0.56);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(214, 40, 57, 0.12);
}

.connection-history-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.connection-history-network-panel {
  margin-top: 18px;
}

#connection-history-network-btn.is-active {
  border-color: rgba(103, 232, 249, 0.42);
  background: rgba(8, 145, 178, 0.16);
  color: #a5f3fc;
}

.connection-history-item {
  display: grid;
  gap: 13px;
  border-left: 3px solid rgba(255, 255, 255, 0.12);
}

.connection-history-main,
.connection-history-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.connection-history-identity {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.connection-history-identity strong {
  overflow-wrap: anywhere;
  font-size: 1rem;
}

.connection-history-panel-user {
  color: var(--muted);
  font-size: 0.78rem;
}

.connection-source {
  flex: 0 0 auto;
  padding: 5px 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.connection-source.is-panel {
  border-color: rgba(103, 232, 249, 0.34);
  background: rgba(8, 145, 178, 0.16);
  color: #a5f3fc;
}

.connection-source.is-launcher {
  border-color: rgba(214, 40, 57, 0.4);
  background: rgba(214, 40, 57, 0.14);
  color: #ffb4bc;
}

.connection-history-meta {
  justify-content: flex-start;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.82rem;
}

.connection-history-meta > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.connection-history-meta b {
  color: rgba(255, 255, 255, 0.54);
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

@media (max-width: 720px) {
  .connection-history-toolbar {
    grid-template-columns: 1fr;
  }

  .connection-history-main {
    align-items: flex-start;
  }

  .connection-history-meta {
    display: grid;
    grid-template-columns: 1fr;
  }

  .current-panel-connections-head,
  .current-panel-connection {
    align-items: flex-start;
    flex-direction: column;
  }

  .current-panel-connection-details {
    display: grid;
    grid-template-columns: 1fr;
  }

  .staff-activity-panel {
    padding: 14px;
  }

  .staff-activity-head,
  .staff-activity-card-main {
    align-items: flex-start;
  }

  .staff-activity-head {
    flex-direction: column;
  }

  .staff-activity-head > strong {
    text-align: left;
  }

  .staff-activity-list,
  .staff-activity-totals,
  .staff-activity-session-row {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 721px) and (max-width: 1180px) {
  .staff-activity-list {
    grid-template-columns: 1fr;
  }
}

.discord-profile-picker{display:grid;gap:12px;margin-top:18px}.discord-profile-picker select{width:100%;padding:12px;background:#171b22;color:#f5f5f5;border:1px solid #647080;border-radius:8px}.discord-profile-dialog{width:min(460px,90vw);padding:24px;background:#171b22;color:#f5f5f5;border:1px solid #647080;border-radius:12px}.discord-profile-dialog::backdrop{background:#000a}
