* { box-sizing: border-box; }

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

body.site {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  color: #fff;
  background: #000;
  font: 16px/1.5 Roboto, Arial, Helvetica, sans-serif;
}

a {
  color: #006DFE;
  text-decoration: none;
}

a:hover,
a:focus {
  text-decoration: underline;
}

:focus-visible {
  outline: 2px solid #006DFE;
  outline-offset: 2px;
}

.page-heading {
  width: min(48rem, calc(100% - 2rem));
  margin: 1rem auto 0;
  overflow-x: auto;
}

.page-heading-bar {
  display: flex;
  align-items: flex-end;
  width: max-content;
}

.page-heading-left {
  position: relative;
  flex: 0 0 auto;
  width: 357px;
  height: 86px;
  z-index: 0;
}

.page-heading-left img {
  display: block;
  width: 357px;
  height: 86px;
}

.page-heading-left h1 {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0 1.25rem 0 1.4rem;
  font-family: Orbitron, Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 1.65rem;
  line-height: 1.1;
  color: #006DFE;
  background: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-heading-right {
  display: block;
  width: 285px;
  height: 86px;
  margin-left: -14px;
  position: relative;
  z-index: 1;
  pointer-events: none;
}

h2 {
  margin: 0 0 1rem;
  font-family: Roboto, Arial, Helvetica, sans-serif;
  font-weight: 700;
  color: #006DFE;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 60px;
  max-height: 60px;
  padding: 0 1rem;
  background: #000;
  border-bottom: 1px solid #1a1a1a;
}

.site-logo {
  display: flex;
  align-items: center;
  height: 60px;
  max-height: 60px;
}

.site-logo img {
  display: block;
  height: 48px;
  width: auto;
  max-height: 48px;
}

.site-menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 0.45rem 0.55rem;
  margin-left: auto;
}

.menu-btn {
  display: inline-flex;
  align-items: flex-end;
  justify-content: center;
  width: 115px;
  height: 35px;
  padding: 0 0.55rem 5px;
  background-color: transparent;
  background-image: url("../images/button-heading-menu-back.png");
  background-repeat: no-repeat;
  background-size: 200% 100%;
  background-position: left center;
  color: #fff;
  font-size: 0.9rem;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.menu-btn:hover,
.menu-btn:focus,
.menu-btn:focus-visible {
  color: #fff;
  text-decoration: none;
  background-position: right center;
}

.menu-btn-logout {
  justify-content: flex-start;
  padding-left: 0.85rem;
  background-image: url("../images/button-heading-logout-back.png");
  text-decoration: none;
}

a.menu-btn-logout:hover,
a.menu-btn-logout:focus,
a.menu-btn-logout:focus-visible {
  text-decoration: none;
}

body.site-player .site-menu .menu-btn,
.footer-menu .menu-btn {
  color: #fff;
}

.site-main {
  width: min(48rem, calc(100% - 2rem));
  margin: 1.5rem auto 2rem;
  flex: 1 1 auto;
}

.site-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.75rem 1rem 1.5rem;
  border-top: 1px solid #1a1a1a;
  color: #006DFE;
}

.footer-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
}

.footer-menu a {
  color: #006DFE;
}

.footer-menu .menu-btn {
  color: #fff;
}

.footer-menu .menu-btn:hover,
.footer-menu .menu-btn:focus,
.footer-menu .menu-btn:focus-visible {
  color: #fff;
  text-decoration: none;
}

body.site-player .footer-menu a:not(.menu-btn) {
  color: #fff;
}

.footer-logo {
  flex: 0 0 auto;
}

.footer-logo img {
  display: block;
  height: 48px;
  width: auto;
}

.stack {
  display: grid;
  gap: 1rem;
}

label {
  display: grid;
  gap: 0.35rem;
  font-weight: 700;
  color: #f2f2f2;
}

input,
textarea,
select {
  width: 100%;
  padding: 0.55rem 0.65rem;
  border: 1px solid #444;
  border-radius: 6px;
  background: #111;
  color: #fff;
  font: inherit;
  font-weight: 400;
}

.password-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0.5rem;
  width: 100%;
}

.password-row input {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
}

button,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 112px;
  height: 47px;
  padding: 0 0.7rem 0 0.95rem;
  border: 0;
  border-radius: 0;
  background-color: transparent;
  background-image: url("../images/button-submit-back.png");
  background-repeat: no-repeat;
  background-size: 200% 100%;
  background-position: left center;
  color: #fff;
  font: inherit;
  font-size: 0.95rem;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

button:hover,
button:focus-visible,
.btn:hover,
.btn:focus-visible {
  text-decoration: none;
  background-position: right center;
}

.btn-danger {
  width: 112px;
  height: 47px;
  background-image: url("../images/button-delete-back.png");
  background-size: 200% 100%;
  background-position: left center;
  color: #fff;
}

.btn-danger:hover,
.btn-danger:focus-visible {
  background-position: right center;
}

.btn-hide {
  width: 112px;
  height: 46px;
  background-image: url("../images/button-suspend-back.png");
  background-size: 200% 100%;
  background-position: left center;
  color: #fff;
}

.btn-hide:hover,
.btn-hide:focus-visible {
  background-position: right center;
}

.password-row .view-pass,
button.view-pass {
  appearance: none;
  flex: 0 0 auto;
  align-self: stretch;
  width: auto;
  height: auto;
  padding: 0.45rem 0.7rem;
  background: #111;
  background-image: none;
  color: #f2f2f2;
  border: 1px solid #444;
  border-radius: 0;
  white-space: nowrap;
  font-size: inherit;
}

.notice,
.error,
.box {
  padding: 0.9rem 1rem;
  border: 1px solid #333;
  border-radius: 6px;
  background: #111;
  color: #f2f2f2;
}

.notice {
  color: #b7f5c8;
  border-color: #2e6b40;
}

.error {
  color: #ffb4b4;
  border-color: #8b3030;
}

.help,
.muted {
  color: #d0d0d0;
  font-weight: 400;
}

.site-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

@media (max-width: 640px) {
  .site-header {
    height: auto;
    max-height: none;
    min-height: 60px;
    padding: 0.4rem 0.75rem;
  }

  .site-menu {
    gap: 0.5rem 0.85rem;
  }

  .site-logo img,
  .footer-logo img {
    height: 40px;
  }

  .site-footer {
    align-items: center;
  }
}
