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

body {
  display: flex;
  flex-direction: column;
}

html:has(body.dashboard-page),
body.dashboard-page {
  overflow: hidden;
  height: 100%;
}

.video-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  z-index: -1;
}

.video-container video {
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  object-position: right center;
  opacity: 0.85;
  filter: blur(2px);
}

.video-gradient {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to right,
      #05060f 0%,
      #05060f 15%,
      rgba(5,6,15,0) 80%
    );
  pointer-events: none;
  filter: blur(1.5px);
}

body.dashboard-page .video-container {
  height: clamp(220px, 34vh, 360px);
}

body.dashboard-page .video-container video,
body.dashboard-page .video-container .video-gradient {
  height: 100%;
}

.dashboard-wrap {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 6rem 0 2rem;
  position: relative;
}

.dashboard-panel {
  width: min(100%, 680px);
  text-align: center;
  padding: var(--panel-py) clamp(1.5rem, 5vw, 3rem);
}

.dashboard-ready-shell {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding-top: 0;
  width: 100%;
  position: relative;
  z-index: 1;
}

.dashboard-ready-titleblock {
  margin: 0;
  min-height: 0;
  height: auto;
  padding: 0 5vw;
  align-items: flex-start;
  justify-content: flex-start;
}

.dashboard-ready-shell .dashboard-ready-titleblock,
body.page .dashboard-ready-shell .dashboard-ready-titleblock {
  min-height: 0;
  height: auto;
  padding-top: 0;
  padding-bottom: 0;
  display: block;
}

.dashboard-ready-titleblock h1 {
  font-size: clamp(3rem, 10vw, 8rem);
}

.dashboard-ready-titleblock p {
  margin-top: .35rem;
  font-size: clamp(12px, 1.5vw, 18px);
  color: var(--fg);
  opacity: 1;
  text-shadow: none;
}

.dashboard-ready-titleblock .title-inner {
  transform: none;
  opacity: 1;
  padding: 0;
}

body.page .dashboard-ready-shell .dashboard-ready-titleblock .title-inner {
  transform: none;
  opacity: 1;
}

.dashboard-ready-panel {
  width: 100%;
  max-width: none;
  margin: var(--gap) 0 0;
  padding: 2rem 5vw 2.25rem;
  background: var(--tab);
  box-shadow: var(--shadow);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
}

.dashboard-ready-title {
  margin: 0 0 1.5rem;
  font-family: "Geo", system-ui, sans-serif;
  font-size: 2rem;
  letter-spacing: .065em;
  line-height: .92;
  text-align: center;
  background: linear-gradient(180deg, var(--a1, #5aeef8), var(--a2, #3ab3ff));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 calc(10px*var(--glow,1)) rgb(65, 201, 255)) drop-shadow(0 0 calc(18px*var(--glow,1)) rgba(30, 30, 255, 0.45));
}

.dashboard-ready-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  align-items: stretch;
}

.dashboard-ready-action {
  min-width: 0;
  border: none;
  appearance: none;
  font-family: inherit;
  color: var(--fg);
  padding: 1.25rem 1.25rem 1.4rem;
  cursor: pointer;
  transition: background .25s ease, transform .25s ease;
  aspect-ratio: 1 / 1;
  width: 100%;
}

a.dashboard-ready-action,
a.dashboard-ready-action:link,
a.dashboard-ready-action:visited,
a.dashboard-ready-action:hover,
a.dashboard-ready-action:active {
  color: inherit;
  text-decoration: none;
}

.dashboard-ready-action:hover {
  background: rgba(28, 101, 134, .55);
  transform: translateY(-2px);
}

.dashboard-ready-card {
  background: rgba(18, 52, 79, 0.35);
  box-shadow: var(--shadow);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.dashboard-ready-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  min-height: 280px;
}

.dashboard-ready-icon {
  width: min(30vw, 190px);
  height: auto;
  object-fit: contain;
  display: block;
  margin-bottom: 1.25rem;
}

.dashboard-ready-action .text {
  text-align: center;
}

.dashboard-ready-action .text strong {
  display: block;
  margin-bottom: .35rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--fg);
}

.dashboard-ready-action .text span {
  display: block;
  font-size: .8rem;
  color: var(--fg2);
  line-height: 1.4;
}

@media (max-width: 720px) {
  .dashboard-ready-shell {
    gap: 0;
    padding-top: 0;
  }

  .dashboard-ready-panel {
    margin-top: .75rem;
  }

  .dashboard-ready-actions {
    flex-direction: column;
    display: flex;
  }

  .dashboard-ready-actions {
    max-width: 100%;
  }

  .dashboard-ready-panel {
    width: 100%;
  }

  .dashboard-ready-action {
    min-height: 220px;
    aspect-ratio: auto;
  }
}

.dashboard-panel p,
.dashboard-panel ul {
  max-width: none;
  text-align: center;
}

.dashboard-form {
  display: flex;
  flex-direction: column;
  gap: .85rem;
  margin-top: 1.2rem;
}

.dashboard-form input {
  width: 100%;
  background: rgba(5, 24, 100, .08);
  border: 0;
  color: var(--fg);
  padding: .9rem 1rem;
  outline: none;
  font: inherit;
}

.dashboard-form input::placeholder {
  color: var(--fg2);
}

.dashboard-form input:-webkit-autofill,
.dashboard-form input:-webkit-autofill:hover,
.dashboard-form input:-webkit-autofill:focus,
.dashboard-form input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px rgba(5, 24, 100, .08) inset !important;
  box-shadow: 0 0 0 1000px rgba(5, 24, 100, .08) inset !important;
  -webkit-text-fill-color: var(--fg) !important;
  caret-color: var(--fg);
  transition: background-color 9999s ease-out 0s;
}

.dashboard-form button,
.dashboard-actions button {
  background: rgba(28, 101, 134, .75);
  border: none;
  padding: .85rem 1rem;
  color: var(--fg);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background .25s ease;
}

.dashboard-form button:hover,
.dashboard-actions button:hover {
  background: var(--tab-hover);
}

#dashboard-logout-early:hover {
  background: var(--tab-hover) !important;
  color: var(--fg) !important;
}

#dashboard-logout:hover,
#dashboard-delete:hover {
  background: var(--tab-hover) !important;
  color: var(--fg) !important;
}

#dashboard-delete {
  background: rgba(200, 50, 50, .75) !important;
}

#dashboard-delete:hover {
  background: rgba(220, 70, 70, .85) !important;
}

.dashboard-meta {
  color: var(--fg2);
  font-size: .96rem;
}

.dashboard-status {
  min-height: 1.1rem;
  margin: 0 0 -.2rem 0;
  font-size: .88rem;
  font-weight: 600;
  text-align: center;
}

.dashboard-status.is-error {
  padding: .6rem .8rem;
  background: rgba(120, 20, 20, .22);
  border-color: rgba(220, 70, 70, .28);
  box-shadow: var(--shadow);
  color: #ffb1b1;
}

.dashboard-status.is-ok {
  padding: .6rem .8rem;
  background: rgba(28, 101, 134, .18);
  border-color: rgba(28, 101, 134, .25);
  box-shadow: var(--shadow);
  color: #8fffb9;
}

.dashboard-actions {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.dashboard-actions a {
  display: inline-flex;
  align-items: center;
  padding: .85rem 1rem;
  box-shadow: var(--shadow);
  color: inherit;
  background: rgba(5, 24, 100, .08);
}

.dashboard-actions a:hover,
.dashboard-actions a:visited {
  color: inherit;
}

.account-panel {
  text-align: center;
}

.account-panel p {
  max-width: 44rem;
}

.account-confirm.is-hidden {
  display: none;
}

.account-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .85rem;
  width: 100%;
}

.account-actions-secondary {
  margin-top: .35rem;
}

.account-actions .secondary-button {
  background: rgba(5, 24, 100, .4) !important;
  color: var(--fg2) !important;
}

.account-actions .danger-button {
  background: rgba(200, 50, 50, .75) !important;
}

.account-actions .danger-button:hover {
  background: rgba(220, 70, 70, .85) !important;
  color: var(--fg) !important;
}

@media (max-width: 720px) {
  .account-actions {
    grid-template-columns: 1fr;
  }
}

footer {
  margin-top: auto;
}
