:root {
  color-scheme: dark;
  --bg: #070809;
  --app: #101216;
  --panel: #171a20;
  --surface: #20242b;
  --line: #303642;
  --line-soft: rgba(151, 162, 176, .22);
  --text: #edf0f4;
  --muted: #abb4c0;
  --soft: #728092;
  --accent: #71e0bf;
  --accent-soft: rgba(113, 224, 191, .11);
  --accent-line: rgba(113, 224, 191, .56);
  --blue: #8db8ff;
  --amber: #f1b35d;
  --red: #ff8f8f;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  display: grid;
  place-items: center;
  padding: 21px;
  background:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px),
    var(--bg);
  background-size: 55px 55px;
  color: var(--text);
  font-family: Inter, "Space Grotesk", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
}

.hel-frame {
  width: min(987px, calc(100vw - 42px));
  min-height: min(610px, calc(100vh - 42px));
  display: grid;
  grid-template-rows: 55px minmax(0, 1fr);
  border: 1px solid rgba(151, 162, 176, .28);
  border-radius: 13px;
  overflow: hidden;
  background: var(--app);
  box-shadow: 0 34px 89px rgba(0, 0, 0, .46);
}

.hel-top {
  display: grid;
  grid-template-columns: 144px minmax(0, 1fr) auto;
  align-items: center;
  min-height: 55px;
  border-bottom: 1px solid var(--line);
  background: #0f1115;
}

.hel-mark {
  width: 144px;
  height: 55px;
  display: grid;
  place-items: center;
  border-right: 1px solid var(--line);
  color: color-mix(in srgb, var(--accent) 78%, white);
  font-family: "Arial Black", Impact, ui-sans-serif, system-ui, sans-serif;
  font-size: 21px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  text-decoration: none;
}

.hel-top-title {
  min-width: 0;
  padding: 0 21px;
  color: var(--muted);
  font: 700 12px/1 "Courier New", ui-monospace, monospace;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hel-top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 13px;
}

.hel-body {
  display: grid;
  grid-template-columns: minmax(0, 610px) minmax(233px, 377px);
  min-height: 555px;
}

.hel-hero {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 34px;
  padding: 55px;
  background:
    linear-gradient(135deg, var(--accent-soft), transparent 58%),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    var(--panel);
  background-size: auto, 89px 89px, 89px 89px, auto;
}

.hel-side {
  display: grid;
  align-content: start;
  gap: 13px;
  border-left: 1px solid var(--line-soft);
  padding: 55px 34px;
  background: #0f1115;
}

.hel-eyebrow {
  margin: 0 0 13px;
  color: var(--accent);
  font: 700 13px/1 "Courier New", ui-monospace, monospace;
  text-transform: uppercase;
}

.hel-title {
  max-width: 610px;
  margin: 0;
  font-size: 55px;
  line-height: 1;
  letter-spacing: 0;
}

.hel-copy {
  max-width: 550px;
  margin: 21px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.45;
}

.hel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
}

.hel-button,
.hel-button-disabled {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 13px;
  color: var(--muted);
  background: rgba(255, 255, 255, .035);
  font: 700 13px/1 "Courier New", ui-monospace, monospace;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.hel-button:hover {
  border-color: var(--accent-line);
  background: var(--accent-soft);
  color: color-mix(in srgb, var(--accent) 74%, white);
}

.hel-button-primary {
  border-color: var(--accent-line);
  color: color-mix(in srgb, var(--accent) 74%, white);
}

.hel-button-disabled {
  opacity: .52;
  cursor: not-allowed;
}

.hel-card {
  min-height: 89px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px;
  background: rgba(255, 255, 255, .035);
}

.hel-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-size: 15px;
}

.hel-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.hel-login-box {
  display: grid;
  gap: 13px;
}

.hel-login-option {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px;
  background: rgba(255, 255, 255, .035);
}

.hel-login-option strong {
  color: var(--text);
  font-size: 15px;
}

.hel-login-option span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.hel-status {
  display: grid;
  gap: 8px;
  color: var(--soft);
  font: 700 12px/1 "Courier New", ui-monospace, monospace;
  text-transform: uppercase;
}

.hel-status-line {
  display: flex;
  justify-content: space-between;
  gap: 13px;
  border-top: 1px solid var(--line);
  padding-top: 8px;
}

.hel-status-line b {
  color: var(--accent);
}

.hel-shell {
  width: min(1597px, 100vw);
  min-height: 100vh;
  display: grid;
  grid-template-rows: 89px minmax(0, 1fr);
  grid-template-columns: 144px minmax(0, 1fr);
  background: var(--app);
}

.hel-shell-top {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 144px minmax(0, 1fr) auto;
  border-bottom: 1px solid var(--line);
  background: #0f1115;
}

.hel-shell-brand {
  display: grid;
  place-items: center;
  border-right: 1px solid var(--line);
  color: color-mix(in srgb, var(--accent) 78%, white);
  font: 900 21px/1 "Arial Black", Impact, sans-serif;
  text-decoration: none;
}

.hel-shell-title {
  padding: 21px 34px;
}

.hel-shell-title h1 {
  margin: 0;
  font-size: 21px;
  line-height: 1;
}

.hel-shell-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 21px;
}

.hel-shell-side {
  border-right: 1px solid var(--line);
  padding: 21px;
}

.hel-shell-main {
  padding: 34px;
}

body.hel-color-mag { --accent: #6ee2ce; --accent-soft: rgba(110, 226, 206, .11); --accent-line: rgba(110, 226, 206, .56); }
body.hel-color-mbp { --accent: #71e0bf; --accent-soft: rgba(113, 224, 191, .11); --accent-line: rgba(113, 224, 191, .56); }
body.hel-color-dit { --accent: #8db8ff; --accent-soft: rgba(141, 184, 255, .12); --accent-line: rgba(141, 184, 255, .56); }
body.hel-color-pem { --accent: #f1b35d; --accent-soft: rgba(241, 179, 93, .12); --accent-line: rgba(241, 179, 93, .56); }

@media (max-width: 820px) {
  body {
    place-items: stretch;
    padding: 13px;
  }

  .hel-frame {
    width: 100%;
    min-height: calc(100vh - 26px);
  }

  .hel-top {
    grid-template-columns: 89px minmax(0, 1fr) auto;
  }

  .hel-mark {
    width: 89px;
  }

  .hel-body {
    grid-template-columns: 1fr;
  }

  .hel-hero,
  .hel-side {
    padding: 34px;
  }

  .hel-side {
    border-left: 0;
    border-top: 1px solid var(--line-soft);
  }

  .hel-title {
    font-size: 34px;
  }

  .hel-shell {
    grid-template-columns: 1fr;
  }

  .hel-shell-top {
    grid-template-columns: 89px minmax(0, 1fr);
  }

  .hel-shell-nav {
    grid-column: 1 / -1;
    min-height: 55px;
    border-top: 1px solid var(--line);
  }

  .hel-shell-side {
    display: none;
  }
}
