:root {
  --bg: #070a12;
  --bg-2: #0b1120;
  --card: rgba(15, 22, 38, 0.86);
  --card-solid: #0f1626;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #eef2ff;
  --muted: #98a4bd;
  --muted-2: #6c7892;
  --green: #42e89a;
  --green-2: #19c97a;
  --amber: #ffc45c;
  --red: #ff6b7a;
  --blue: #7aa7ff;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

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

body {
  margin: 0;
  min-height: 100dvh;
  color: var(--text);
  font-family: var(--sans);
  background:
    radial-gradient(900px 540px at 12% -10%, rgba(66, 232, 154, 0.12), transparent 60%),
    radial-gradient(760px 520px at 108% 8%, rgba(122, 167, 255, 0.11), transparent 62%),
    radial-gradient(900px 700px at 50% 120%, rgba(255, 196, 92, 0.05), transparent 60%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at 50% 20%, black, transparent 72%);
}

.shell {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(18px, env(safe-area-inset-top)) 16px
    max(18px, env(safe-area-inset-bottom));
}

.card {
  width: min(100%, 540px);
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--card);
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(22px) saturate(125%);
  -webkit-backdrop-filter: blur(22px) saturate(125%);
  animation: card-in 0.35s ease-out;
}

@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.loading {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.spinner {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-top-color: var(--green);
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Brand ------------------------------------------------------------------ */

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

.brand-centered {
  justify-content: center;
  margin-bottom: 22px;
}

.logo {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 14px;
  color: var(--green);
  background: radial-gradient(circle at 30% 20%, rgba(66, 232, 154, 0.24), rgba(66, 232, 154, 0.06));
  border: 1px solid rgba(66, 232, 154, 0.22);
  box-shadow: 0 0 24px rgba(66, 232, 154, 0.1);
}

.logo svg {
  width: 23px;
  height: 23px;
}

.brand-text {
  display: flex;
  min-width: 0;
  flex-direction: column;
  line-height: 1.2;
}

.brand-text strong {
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.brand-text small {
  color: var(--muted-2);
  font-size: 11px;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Typography ------------------------------------------------------------- */

h1,
h2 {
  margin: 0;
  letter-spacing: -0.025em;
}

h1 {
  font-size: 26px;
  line-height: 1.12;
  font-weight: 680;
}

h2 {
  font-size: 17px;
  font-weight: 650;
}

p {
  margin: 0;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 12.5px;
  line-height: 1.5;
}

code {
  padding: 0.1em 0.38em;
  border-radius: 5px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  font-family: var(--mono);
  font-size: 0.88em;
  color: #cfe0ff;
}

.error {
  margin-top: 12px;
  color: var(--red);
  font-size: 13px;
}

/* Login ------------------------------------------------------------------ */

.login-card {
  padding: 34px 28px 28px;
}

#login-view {
  margin-block: auto;
}

.login-card h1 {
  text-align: center;
  margin-bottom: 8px;
}

.login-card > p.muted {
  text-align: center;
  max-width: 330px;
  margin: 0 auto 24px;
  font-size: 13.5px;
  line-height: 1.55;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.login-form label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.02em;
}

input[type="password"] {
  width: 100%;
  height: 50px;
  padding: 0 15px;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  outline: none;
  background: rgba(0, 0, 0, 0.22);
  color: var(--text);
  font: inherit;
  font-size: 16px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

input[type="password"]:focus {
  border-color: rgba(66, 232, 154, 0.65);
  box-shadow: 0 0 0 4px rgba(66, 232, 154, 0.11);
}

/* Buttons ---------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  transition:
    background 0.15s,
    border-color 0.15s,
    transform 0.1s,
    opacity 0.15s;
}

.btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.24);
}

.btn:active:not(:disabled) {
  transform: translateY(1px);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn.primary {
  border-color: transparent;
  background: linear-gradient(180deg, #58f0a7, #22ce80);
  color: #04140c;
  box-shadow: 0 8px 28px rgba(34, 206, 128, 0.22);
}

.btn.primary:hover:not(:disabled) {
  background: linear-gradient(180deg, #6bffb7, #2bdd8d);
  border-color: transparent;
}

.btn.power {
  width: min(100%, 252px);
  height: 52px;
  border-radius: 999px;
  font-size: 14.5px;
  letter-spacing: 0.01em;
}

.btn.power.danger {
  border-color: rgba(255, 107, 122, 0.28);
  background: rgba(255, 107, 122, 0.1);
  color: #ffc1c7;
  box-shadow: none;
}

.btn.power.danger:hover:not(:disabled) {
  background: rgba(255, 107, 122, 0.16);
  border-color: rgba(255, 107, 122, 0.45);
}

.hero-actions {
  display: flex;
  gap: 8px;
  width: min(100%, 348px);
}

.hero-actions.single {
  width: min(100%, 252px);
}

.hero-actions .btn.power {
  flex: 1;
  width: auto;
  min-width: 0;
}

.btn.power.secondary {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
}

.btn.power.secondary:hover:not(:disabled) {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.09);
}

.btn.power.needs-restart {
  border-color: rgba(255, 196, 92, 0.38);
  background: rgba(255, 196, 92, 0.08);
  color: #ffd891;
}

.btn.power.needs-restart::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 8px var(--amber);
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  cursor: pointer;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}

.icon-btn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--line-strong);
}

.icon-btn svg {
  width: 18px;
  height: 18px;
}

.link-btn {
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 11.5px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.section-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.link-btn:hover {
  color: var(--text);
}

/* Header / status -------------------------------------------------------- */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.help-icon {
  font-size: 15px;
  font-weight: 700;
}

/* Hero ------------------------------------------------------------------- */

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  padding: 18px 0 22px;
}

.orb {
  position: relative;
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--muted);
  background:
    radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.07), transparent 55%),
    rgba(255, 255, 255, 0.025);
  transition:
    color 0.3s,
    border-color 0.3s,
    box-shadow 0.3s,
    background 0.3s;
}

.orb svg {
  width: 36px;
  height: 36px;
}

.orb-spinner {
  display: none;
  width: 26px;
  height: 26px;
  border: 2px solid rgba(255, 255, 255, 0.16);
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.orb.loading svg {
  display: none;
}

.orb.loading .orb-spinner {
  display: block;
}

.orb.running {
  color: var(--green);
  border-color: rgba(66, 232, 154, 0.32);
  background:
    radial-gradient(circle at 35% 25%, rgba(66, 232, 154, 0.24), transparent 58%),
    rgba(66, 232, 154, 0.06);
  box-shadow:
    0 0 0 10px rgba(66, 232, 154, 0.05),
    0 0 50px rgba(66, 232, 154, 0.2);
}

.orb.starting,
.orb.stopping {
  color: var(--amber);
  border-color: rgba(255, 196, 92, 0.3);
  background:
    radial-gradient(circle at 35% 25%, rgba(255, 196, 92, 0.2), transparent 58%),
    rgba(255, 196, 92, 0.05);
  animation: orb-breathe 2s ease-in-out infinite;
}

.orb.error {
  color: var(--red);
  border-color: rgba(255, 107, 122, 0.34);
  background:
    radial-gradient(circle at 35% 25%, rgba(255, 107, 122, 0.2), transparent 58%),
    rgba(255, 107, 122, 0.05);
}

@keyframes orb-breathe {
  50% {
    box-shadow: 0 0 0 14px rgba(255, 196, 92, 0.035);
  }
}

.orb.starting::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px solid transparent;
  border-top-color: rgba(255, 196, 92, 0.7);
  animation: spin 1.5s linear infinite;
}

.hint {
  max-width: 330px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.5;
  text-align: center;
}

/* Region ----------------------------------------------------------------- */

.section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 9px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  padding: 0 6px;
  border-radius: 5px;
  border: 1px solid rgba(66, 232, 154, 0.18);
  background: rgba(66, 232, 154, 0.07);
  color: var(--green);
  font-size: 9px;
  letter-spacing: 0.04em;
}

.tag.paid {
  border-color: rgba(255, 196, 92, 0.24);
  background: rgba(255, 196, 92, 0.08);
  color: var(--amber);
}

.select-wrap {
  position: relative;
}

.select {
  width: 100%;
  height: 46px;
  padding: 0 38px 0 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  background: rgba(0, 0, 0, 0.19);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s, opacity 0.15s;
}

.select:focus {
  border-color: rgba(66, 232, 154, 0.55);
  box-shadow: 0 0 0 4px rgba(66, 232, 154, 0.1);
}

.select:disabled {
  cursor: default;
  opacity: 0.6;
}

.select option,
.select optgroup {
  background: #0f1626;
  color: var(--text);
}

.select-chevron {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  color: var(--muted-2);
  font-size: 12px;
  pointer-events: none;
}

#location-note {
  margin-top: 7px;
  line-height: 1.45;
}

#location-note:empty {
  display: none;
}

.region-row {
  margin-top: 8px;
}

.region-row .select {
  height: 38px;
  padding: 0 32px 0 10px;
  font-size: 12px;
}

.sleep-setting {
  position: relative;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.sleep-setting label {
  color: var(--muted);
  font-size: 12px;
}

.sleep-select-wrap {
  width: 150px;
}

.select-small {
  height: 38px;
  padding: 0 32px 0 10px;
  font-size: 12px;
}

.sleep-suffix {
  color: var(--muted);
  font-size: 12px;
}

/* Small "?" tooltip, used by the inactivity setting. ----------------------- */

.tip-wrap {
  display: inline-flex;
  align-items: center;
}

.tip-btn {
  width: 18px;
  height: 18px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  font: inherit;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.tip-btn:hover {
  color: var(--text);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.07);
}

.tip {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 5;
  width: 220px;
  max-width: calc(100vw - 56px);
  padding: 8px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: #0d1422;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.45;
  text-align: left;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
}

.tip-btn:hover + .tip,
.tip-btn:focus-visible + .tip,
.tip-btn[aria-expanded="true"] + .tip {
  display: block;
}

/* Alert ------------------------------------------------------------------ */

.alert {
  margin-top: 14px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--muted-2);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.alert.warn {
  border-left-color: var(--amber);
  background: rgba(255, 196, 92, 0.06);
  color: #f2d9aa;
}

.alert.error {
  border-left-color: var(--red);
  background: rgba(255, 107, 122, 0.06);
  color: #ffc4ca;
}

.alert.info {
  border-left-color: var(--blue);
  background: rgba(122, 167, 255, 0.06);
  color: #c8d8ff;
}

.alert details {
  margin-top: 7px;
}

.alert summary {
  cursor: pointer;
  color: inherit;
  font-size: 11px;
  opacity: 0.8;
}

.alert pre {
  max-height: 220px;
  margin: 8px 0 0;
  padding: 9px;
  overflow: auto;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.35);
  color: #cbd5e1;
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}

/* Devices ---------------------------------------------------------------- */

#devices-block {
  margin-top: 20px;
}

.devices {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.device-row {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 7px 8px 7px 11px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.028);
  color: var(--text);
  font: inherit;
  text-align: left;
  transition: background 0.15s, border-color 0.15s;
}

.device-row:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.055);
}

.device-main {
  display: flex;
  align-items: center;
  gap: 11px;
  flex: 1;
  min-width: 0;
  padding: 3px 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.device-main:focus-visible {
  outline: 2px solid rgba(66, 232, 154, 0.55);
  outline-offset: 2px;
  border-radius: 8px;
}

.device-remove {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--muted-2);
  font: inherit;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}

.device-remove:hover {
  color: var(--red);
  background: rgba(255, 107, 122, 0.08);
}

.device-row.active {
  border-color: rgba(66, 232, 154, 0.3);
  background: rgba(66, 232, 154, 0.055);
}

.device-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
}

.device-row.active .device-icon {
  background: rgba(66, 232, 154, 0.1);
  color: var(--green);
}

.device-icon svg {
  width: 17px;
  height: 17px;
}

.device-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 1px;
}

.device-name {
  font-size: 13px;
  font-weight: 620;
  text-transform: capitalize;
}

.device-status {
  flex: none;
  width: 8px;
  height: 8px;
  margin-left: auto;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: transparent;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.device-status.on {
  border-color: transparent;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(66, 232, 154, 0.14);
}

.chev {
  margin-left: 0;
  color: var(--muted-2);
  font-size: 18px;
  line-height: 1;
}

#devices-note {
  margin: -2px 0 9px;
  color: var(--amber);
}

.add-device {
  display: flex;
  gap: 6px;
  margin: 0 0 10px;
}

.add-device input {
  flex: 1;
  min-width: 0;
  height: 40px;
  padding: 0 11px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  outline: none;
  background: rgba(0, 0, 0, 0.22);
  color: var(--text);
  font: inherit;
  font-size: 13px;
}

.add-device input:focus {
  border-color: rgba(66, 232, 154, 0.55);
  box-shadow: 0 0 0 3px rgba(66, 232, 154, 0.1);
}

.add-device .btn {
  min-height: 40px;
  padding: 0 12px;
  font-size: 12px;
}

/* Config panel ----------------------------------------------------------- */

.config-panel {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid rgba(66, 232, 154, 0.18);
  border-radius: 15px;
  background:
    radial-gradient(500px 220px at 50% 0%, rgba(66, 232, 154, 0.055), transparent 70%),
    rgba(0, 0, 0, 0.17);
  animation: panel-in 0.22s ease-out;
}

@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

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

.config-head .icon-btn {
  width: 32px;
  height: 32px;
}

.config-head .icon-btn svg {
  width: 15px;
  height: 15px;
}

.qr {
  display: grid;
  place-items: center;
  width: min(100%, 280px);
  min-height: 180px;
  margin: 14px auto 10px;
  padding: 12px;
  border-radius: 12px;
  background: #fff;
}

.qr svg {
  display: block;
  width: 100%;
  height: auto;
}

.qr .qr-placeholder {
  color: #65708a;
  font-size: 12px;
}

.warning {
  color: var(--amber);
  font-size: 11px;
  line-height: 1.45;
  text-align: center;
}

.actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-top: 12px;
}

.config-text {
  margin-top: 12px;
}

.config-text summary {
  color: var(--muted);
  font-size: 11px;
  cursor: pointer;
}

.config-text pre {
  max-height: 220px;
  margin: 8px 0 0;
  padding: 10px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(0, 0, 0, 0.3);
  color: #cbd5e1;
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-all;
}

/* Help ------------------------------------------------------------------ */

.help-dialog {
  width: min(92vw, 560px);
  max-height: 86dvh;
  padding: 0;
  overflow: auto;
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  background: var(--card-solid);
  color: var(--text);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6);
}

.help-dialog::backdrop {
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(4px);
}

.help-head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 19px 20px 13px;
  border-bottom: 1px solid var(--line);
  background: var(--card-solid);
}

.help-head h2 {
  font-size: 19px;
}

.help-head p {
  margin-top: 3px;
}

.help-body {
  padding: 16px 20px 22px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.help-steps {
  margin: 0 0 18px;
  padding-left: 18px;
  color: var(--text);
}

.help-steps li {
  margin-bottom: 5px;
}

.help-body h3 {
  margin: 17px 0 4px;
  color: var(--text);
  font-size: 13px;
  font-weight: 650;
}

.help-body p {
  margin: 0;
}

.help-body a {
  color: var(--green);
}

.help-body code {
  font-size: 0.85em;
}

.help-body p.help-warning {
  margin: 20px 0 0;
  padding: 10px 12px;
  border: 1px solid rgba(255, 196, 92, 0.22);
  border-radius: 9px;
  background: rgba(255, 196, 92, 0.06);
  font-size: 12px;
  line-height: 1.45;
  text-align: left;
}

/* Toast ------------------------------------------------------------------ */

.toast {
  position: fixed;
  left: 50%;
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 20;
  max-width: min(92vw, 430px);
  padding: 11px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(15, 22, 38, 0.96);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.5);
  color: var(--text);
  font-size: 12px;
  text-align: center;
  transform: translateX(-50%);
  animation: toast-in 0.2s ease-out;
  backdrop-filter: blur(14px);
}

.toast.error {
  border-color: rgba(255, 107, 122, 0.35);
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translate(-50%, 8px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

/* Mobile ----------------------------------------------------------------- */

@media (max-width: 520px) {
  .shell {
    align-items: flex-start;
    padding-left: 10px;
    padding-right: 10px;
  }

  .card {
    padding: 19px 17px;
    border-radius: 22px;
  }

  .login-card {
    padding: 28px 20px 22px;
  }

  .brand-text small {
    max-width: 150px;
  }

  h1 {
    font-size: 23px;
  }

  .orb {
    width: 104px;
    height: 104px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
