:root {
  color-scheme: light;
  --avl-blue: #183b73;
  --avl-blue-2: #0e2550;
  --avl-cyan: #12c9e8;
  --avl-green: #7bdc58;
  --avl-yellow: #ffd22e;
  --avl-red: #ed303e;
  --avl-ink: #07111f;
  --avl-muted: #5f6f83;
  --avl-line: #d9e4ef;
  --avl-panel: #f4f8fb;
  --avl-white: #ffffff;
  --avl-shadow: 0 18px 55px rgba(16, 38, 70, 0.14);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #f7fbff;
  color: var(--avl-ink);
  min-width: 320px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.site-shell {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.95), rgba(247,251,255,0.95)),
    radial-gradient(circle at 80% 8%, rgba(18,201,232,0.16), transparent 28%),
    radial-gradient(circle at 15% 20%, rgba(255,210,46,0.11), transparent 24%);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 54px);
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(217, 228, 239, 0.82);
  backdrop-filter: blur(18px);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 600;
  color: var(--avl-blue-2);
}

.brand-lockup img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
}

.brand-lockup span {
  font-size: 1.08rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: #243b58;
  font-size: 0.95rem;
}

.nav-links a {
  text-decoration: none;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--avl-blue);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--avl-blue);
  color: #fff;
  font: inherit;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
}

.button.secondary {
  background: var(--avl-blue);
  color: #fff;
  border-color: var(--avl-blue);
}

.button.ghost {
  background: var(--avl-blue);
  color: #fff;
  border-color: var(--avl-blue);
}

.button:hover,
.button:focus,
.button.secondary:hover,
.button.secondary:focus,
.button.ghost:hover,
.button.ghost:focus {
  background: var(--avl-blue-2);
  border-color: var(--avl-blue-2);
  color: #fff;
}

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

.hero {
  min-height: calc(100vh - 76px);
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
  gap: clamp(32px, 6vw, 82px);
  align-items: center;
  padding: clamp(42px, 7vw, 86px) clamp(18px, 5vw, 72px);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--avl-blue);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0;
}

.hero h1,
.page-hero h1 {
  margin: 0;
  max-width: 860px;
  font-size: clamp(2.7rem, 6vw, 5.9rem);
  line-height: 0.94;
  letter-spacing: 0;
  color: var(--avl-blue-2);
}

.hero .lead,
.page-hero .lead {
  margin: 24px 0 0;
  max-width: 680px;
  color: #41546b;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 36px;
  max-width: 720px;
}

.proof-item {
  border: 1px solid var(--avl-line);
  background: rgba(255,255,255,0.78);
  border-radius: 8px;
  padding: 14px;
}

.proof-item strong {
  display: block;
  color: var(--avl-blue-2);
  font-size: 1.1rem;
}

.proof-item span {
  display: block;
  margin-top: 5px;
  color: var(--avl-muted);
  font-size: 0.88rem;
  line-height: 1.35;
}

.product-stage {
  position: relative;
  min-height: 550px;
  display: grid;
  align-items: center;
}

.product-hero-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid rgba(217, 228, 239, 0.95);
  border-radius: 8px;
  box-shadow: var(--avl-shadow);
}

.stage-card {
  position: relative;
  padding: 28px;
  border: 1px solid rgba(217, 228, 239, 0.95);
  border-radius: 8px;
  background: rgba(255,255,255,0.84);
  box-shadow: var(--avl-shadow);
  overflow: hidden;
}

.device-pair {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 24px;
  align-items: center;
}

.device {
  border-radius: 8px;
  background: #111927;
  border: 10px solid #202b3b;
  box-shadow: 0 20px 45px rgba(7,17,31,0.25);
  overflow: hidden;
}

.device.controller {
  aspect-ratio: 1.15 / 1;
}

.device.door {
  aspect-ratio: 0.72 / 1;
}

.screen {
  height: 100%;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
}

.controller .screen {
  background: linear-gradient(140deg, #e8f7ff, #ffffff);
  color: var(--avl-blue-2);
}

.door .screen {
  background: #d9363f;
}

.screen-title {
  font-weight: 600;
  font-size: clamp(1.3rem, 3vw, 2rem);
}

.screen-subtitle {
  margin-top: 6px;
  color: inherit;
  opacity: 0.72;
  font-weight: 600;
}

.status-pill {
  align-self: flex-start;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(18,201,232,0.18);
  color: var(--avl-blue-2);
  font-weight: 600;
}

.status-word {
  font-size: clamp(2rem, 5vw, 3.7rem);
  line-height: 1;
  font-weight: 600;
  text-align: center;
}

.door .screen-subtitle {
  text-align: center;
  opacity: 0.88;
}

.sync-line {
  height: 4px;
  background: repeating-linear-gradient(90deg, var(--avl-cyan), var(--avl-cyan) 18px, transparent 18px, transparent 30px);
  border-radius: 999px;
}

.section {
  padding: clamp(56px, 8vw, 100px) clamp(18px, 5vw, 72px);
}

.section.alt {
  background: #fff;
}

.section-header {
  max-width: 880px;
  margin-bottom: 34px;
}

.section-header h2 {
  margin: 0;
  color: var(--avl-blue-2);
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.03;
  letter-spacing: 0;
}

.section-header p {
  margin: 16px 0 0;
  color: #4c6076;
  font-size: 1.05rem;
  line-height: 1.65;
}

.grid {
  display: grid;
  gap: 18px;
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature-card,
.portal-card,
.info-card {
  border: 1px solid var(--avl-line);
  border-radius: 8px;
  background: #fff;
  padding: 22px;
  box-shadow: 0 12px 28px rgba(16, 38, 70, 0.06);
}

.feature-card h3,
.portal-card h3,
.info-card h3 {
  margin: 0;
  color: var(--avl-blue-2);
  font-size: 1.15rem;
}

.feature-card p,
.portal-card p,
.info-card p,
.feature-card li,
.portal-card li,
.info-card li {
  color: #53687e;
  line-height: 1.55;
}

.feature-card p,
.portal-card p,
.info-card p {
  margin: 10px 0 0;
}

.setup-card-icon {
  width: 46px;
  height: 46px;
  margin-bottom: 16px;
  object-fit: contain;
}

.quick-start-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: clamp(20px, 4vw, 32px);
  border: 1px solid rgba(18,201,232,0.28);
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(18,201,232,0.12), rgba(255,255,255,0.94));
  box-shadow: 0 16px 44px rgba(16, 38, 70, 0.08);
}

.quick-start-card img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.quick-start-card h2,
.quick-start-card p {
  margin: 0;
}

.quick-start-card h2 {
  color: var(--avl-blue-2);
  font-size: clamp(1.45rem, 3vw, 2.1rem);
  line-height: 1.12;
}

.quick-start-card p:not(.eyebrow) {
  margin-top: 8px;
  color: #4c6076;
  line-height: 1.55;
}

.back-to-top-button {
  position: fixed;
  right: clamp(16px, 2vw, 28px);
  bottom: clamp(16px, 2vw, 28px);
  z-index: 40;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(217, 228, 239, 0.95);
  border-radius: 999px;
  background: rgba(255,255,255,0.94);
  box-shadow: 0 18px 50px rgba(16, 38, 70, 0.2);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px) scale(0.96);
  transition:
    opacity 180ms ease,
    transform 180ms ease,
    background 160ms ease,
    border-color 160ms ease;
  backdrop-filter: blur(14px);
}

.back-to-top-button.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.back-to-top-button:hover,
.back-to-top-button:focus {
  border-color: rgba(24, 59, 115, 0.28);
  background: #eef5fb;
  outline: none;
  transform: translateY(-2px) scale(1.04);
}

.back-to-top-button img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.timeline {
  display: grid;
  gap: 12px;
  counter-reset: step;
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--avl-line);
  border-radius: 8px;
  background: #fff;
}

.timeline-item::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--avl-yellow);
  color: #342d03;
  font-weight: 600;
}

.timeline-item h3 {
  margin: 0;
  color: var(--avl-blue-2);
}

.timeline-item p {
  margin: 7px 0 0;
  color: #53687e;
}

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 960px;
}

.faq-list details {
  border: 1px solid var(--avl-line);
  border-radius: 8px;
  background: #fff;
  padding: 18px 20px;
}

.faq-list summary {
  cursor: pointer;
  color: var(--avl-blue-2);
  font-weight: 600;
}

.faq-list p {
  margin: 12px 0 0;
  color: #53687e;
  line-height: 1.6;
}

.cta-band {
  margin: clamp(44px, 8vw, 82px) clamp(18px, 5vw, 72px);
  padding: clamp(32px, 6vw, 58px);
  border-radius: 8px;
  background: linear-gradient(135deg, var(--avl-blue-2), var(--avl-blue));
  color: #fff;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}

.cta-band h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.cta-band p {
  margin: 10px 0 0;
  color: rgba(255,255,255,0.8);
}

.footer {
  padding: 34px clamp(18px, 5vw, 72px);
  border-top: 1px solid var(--avl-line);
  background: #fff;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  color: #53687e;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer a {
  text-decoration: none;
  color: #304861;
}

.page-hero {
  padding: clamp(56px, 9vw, 110px) clamp(18px, 5vw, 72px) clamp(30px, 5vw, 58px);
}

.legal-copy {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 clamp(18px, 5vw, 72px) 80px;
}

.legal-copy h2 {
  color: var(--avl-blue-2);
}

.legal-copy p,
.legal-copy li {
  color: #4c6076;
  line-height: 1.65;
}

.portal-shell {
  height: 100vh;
  min-height: 0;
  display: grid;
  grid-template-columns: 280px 1fr;
  background: #eff5fa;
  overflow: hidden;
}

.portal-shell.auth-shell {
  height: auto;
  min-height: 100vh;
  grid-template-columns: 1fr;
  background:
    linear-gradient(135deg, rgba(14, 37, 80, 0.98), rgba(24, 59, 115, 0.94) 52%, rgba(18, 201, 232, 0.82)),
    var(--avl-blue);
  overflow: auto;
}

.portal-shell.auth-shell .portal-sidebar {
  display: none;
}

.portal-shell.auth-shell .portal-main {
  height: auto;
  min-height: 100vh;
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: center;
  padding: clamp(20px, 5vw, 48px);
  overflow: visible;
}

.portal-sidebar {
  height: 100vh;
  overflow: hidden;
  background:
    linear-gradient(160deg, rgba(18, 201, 232, 0.18) 0%, rgba(24, 59, 115, 0.96) 38%, rgba(14, 37, 80, 0.98) 100%),
    var(--avl-blue);
  color: #fff;
  padding: 24px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.portal-sidebar .brand-lockup {
  width: 100%;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  color: #fff;
  padding: 6px 0 24px;
  border-bottom: 1px solid rgba(255,255,255,0.16);
}

.portal-sidebar .portal-logo-icon {
  width: 78px;
  height: auto;
  border-radius: 0;
  object-fit: contain;
}

.portal-brand-title {
  color: rgba(255,255,255,0.92);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0;
}

.portal-nav {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.portal-nav button {
  width: 100%;
  min-height: 56px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.86);
  text-align: left;
  padding: 0 14px;
  font-weight: 600;
  letter-spacing: 0;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, color 160ms ease;
}

.portal-nav button img {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  padding: 6px;
  border-radius: 8px;
  background: rgba(255,255,255,0.14);
  filter: brightness(0) invert(1);
  object-fit: contain;
}

.portal-nav button span {
  min-width: 0;
  line-height: 1.15;
}

.portal-nav button.active,
.portal-nav button:hover {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.2), rgba(18,201,232,0.16)),
    rgba(255,255,255,0.1);
  border-color: rgba(18,201,232,0.52);
  color: #fff;
  box-shadow: 0 12px 28px rgba(8, 21, 39, 0.18), inset 0 1px 0 rgba(255,255,255,0.16);
}

.portal-nav button:focus {
  outline: 3px solid rgba(18,201,232,0.34);
  outline-offset: 2px;
}

.portal-nav .portal-logoff-button {
  margin-top: 12px;
  border-color: rgba(255,255,255,0.22);
}

.portal-main {
  height: 100vh;
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: clamp(20px, 4vw, 46px);
}

.portal-page-footer {
  margin-top: 34px;
  color: #728197;
  font-size: 0.86rem;
  text-align: center;
}

.portal-shell.auth-shell .portal-page-footer {
  align-self: end;
  color: rgba(255,255,255,0.74);
}

.portal-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 26px;
}

.portal-header h1 {
  margin: 0;
  color: var(--avl-blue-2);
  font-size: clamp(2rem, 4vw, 3.4rem);
  letter-spacing: 0;
}

.portal-header p {
  margin: 8px 0 0;
  color: #53687e;
}

.portal-header-actions {
  display: flex;
  align-items: center;
  gap: 30px;
  flex: 0 0 auto;
}

.support-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.support-header-actions .button {
  min-width: 136px;
}

.portal-refresh-button,
.support-ticket-refresh-button {
  flex: 0 0 auto;
  position: relative;
  min-width: 112px;
  background: var(--avl-blue);
  border-color: var(--avl-blue);
  color: #fff;
  box-shadow: 0 12px 28px rgba(24, 59, 115, 0.22);
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, color 160ms ease;
}

.portal-refresh-button:hover,
.portal-refresh-button:focus,
.support-ticket-refresh-button:hover,
.support-ticket-refresh-button:focus {
  background: var(--avl-blue-2);
  border-color: var(--avl-blue-2);
  color: #fff;
}

.portal-refresh-button:disabled,
.support-ticket-refresh-button:disabled {
  cursor: wait;
  opacity: 1;
}

.portal-refresh-button.is-success,
.portal-refresh-button.is-success:hover,
.portal-refresh-button.is-success:focus,
.support-ticket-refresh-button.is-success,
.support-ticket-refresh-button.is-success:hover,
.support-ticket-refresh-button.is-success:focus {
  background: #16864f;
  border-color: #16864f;
  color: #fff;
  box-shadow: 0 12px 28px rgba(22, 134, 79, 0.24);
}

.refresh-button-spinner,
.refresh-button-check {
  display: none;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.portal-refresh-button.is-loading .refresh-button-label,
.portal-refresh-button.is-success .refresh-button-label,
.support-ticket-refresh-button.is-loading .refresh-button-label,
.support-ticket-refresh-button.is-success .refresh-button-label {
  display: none;
}

.portal-refresh-button.is-loading .refresh-button-spinner,
.support-ticket-refresh-button.is-loading .refresh-button-spinner {
  display: block;
  border: 2px solid rgba(255,255,255,0.42);
  border-top-color: #fff;
  border-radius: 999px;
  animation: avlRefreshSpin 760ms linear infinite;
}

.portal-refresh-button.is-success .refresh-button-check,
.support-ticket-refresh-button.is-success .refresh-button-check {
  display: block;
  position: relative;
}

.portal-refresh-button.is-success .refresh-button-check::before,
.support-ticket-refresh-button.is-success .refresh-button-check::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 4px;
  width: 9px;
  height: 6px;
  border-left: 3px solid #fff;
  border-bottom: 3px solid #fff;
  transform: rotate(-45deg);
}

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

.status-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.metric {
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--avl-line);
  padding: 16px;
}

.metric span {
  color: var(--avl-muted);
  font-size: 0.84rem;
  font-weight: 600;
  text-transform: uppercase;
}

.metric strong {
  display: block;
  margin-top: 8px;
  color: var(--avl-blue-2);
  font-size: 1.35rem;
}

.account-metric {
  display: grid;
  align-content: center;
  text-align: center;
}

.account-metric strong {
  min-height: 2.5em;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.12;
}

.portal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 18px;
}

.portal-hero-card {
  grid-column: 1 / -1;
  background:
    linear-gradient(135deg, rgba(24, 59, 115, 0.96), rgba(14, 37, 80, 0.94)),
    linear-gradient(90deg, rgba(18, 201, 232, 0.2), rgba(255, 210, 46, 0.12));
  color: #fff;
}

.portal-hero-card h2 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.04;
  letter-spacing: 0;
}

.portal-hero-card p {
  max-width: 720px;
  color: rgba(255,255,255,0.78);
}

.portal-hero-card .eyebrow {
  color: var(--avl-cyan);
}

.portal-action-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.portal-hero-card .button,
.portal-action-strip .button.secondary {
  background: #fff;
  color: var(--avl-blue);
  border-color: #fff;
}

.portal-hero-card .button:hover,
.portal-hero-card .button:focus,
.portal-action-strip .button.secondary:hover,
.portal-action-strip .button.secondary:focus {
  background: #e8f6ff;
  color: var(--avl-blue-2);
  border-color: #e8f6ff;
}

.auth-panel {
  max-width: 624px;
  margin: 0 auto;
  align-self: center;
}

.login-panel {
  width: min(100%, 624px);
  padding: clamp(28px, 5vw, 42px);
  border: 0;
  box-shadow: 0 18px 50px rgba(16, 38, 70, 0.1);
}

.login-logo {
  width: min(220px, 58vw);
  height: auto;
  margin-bottom: 18px;
  object-fit: contain;
}

.login-panel h1 {
  margin: 0;
  color: var(--avl-ink);
  font-size: clamp(2rem, 5vw, 2.75rem);
  line-height: 1.08;
  letter-spacing: 0;
  font-weight: 600;
}

.register-content {
  display: grid;
  gap: 0;
}

.register-content .eyebrow {
  margin: 0 0 8px;
  color: #007a72;
}

.register-intro {
  margin: 14px 0 20px;
  color: #435970;
  line-height: 1.55;
}

.register-form {
  margin-top: 18px;
}

.register-form .field input:read-only {
  background: #f4f8fc;
  color: #435970;
}

.register-button-row {
  margin-top: 24px;
}

.register-button-row .button {
  flex: 1 1 220px;
  min-height: 52px;
  font-weight: 600;
}

.required-legend {
  margin: 8px 0 0;
  color: #536a83;
  font-size: 0.88rem;
  font-weight: 600;
}

.required-legend span {
  color: #be3144;
  font-weight: 800;
}

.required-label::after,
.required-marker {
  margin-left: 4px;
  color: #be3144;
  content: "*";
  font-weight: 800;
}

.field-invalid input,
.field-invalid select {
  border-color: #be3144;
  box-shadow: 0 0 0 3px rgba(190, 49, 68, 0.1);
}

.register-contact-preferences {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.68rem 0.9rem;
  align-items: end;
}

.register-newsletter-field {
  margin-top: 0;
}

.register-contact-preferences .register-newsletter-field {
  min-height: 50px;
}

.register-newsletter-help {
  grid-column: 1 / -1;
  margin-top: 0.1rem;
}

.register-terms-field {
  grid-column: 1 / -1;
  align-items: flex-start;
  margin-top: 2px;
  padding: 12px 14px;
  border: 1px solid rgba(24, 59, 115, 0.14);
  border-radius: 8px;
  background: rgba(18, 201, 232, 0.06);
  line-height: 1.45;
}

.register-terms-field a {
  color: var(--avl-blue);
  font-weight: 600;
  text-decoration: none;
}

.register-terms-field a:hover,
.register-terms-field a:focus {
  text-decoration: underline;
}

.register-terms-help {
  grid-column: 1 / -1;
  max-width: 74rem;
  margin-top: -0.55rem;
  color: #536a83;
  font-size: 0.82rem;
  line-height: 1.45;
}

.register-password-block {
  grid-column: 1 / -1;
  display: grid;
  gap: 12px;
  margin-top: 4px;
  padding: 14px;
  border: 1px solid rgba(217, 228, 239, 0.92);
  border-radius: 8px;
  background: #f7fbff;
}

.register-password-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.password-strength-meter {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #e2eaf3;
}

.password-strength-meter span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: #be3144;
  transition: width 0.18s ease, background 0.18s ease;
}

.password-strength-meter[data-strength="bad"] span {
  width: 33%;
  background: #be3144;
}

.password-strength-meter[data-strength="warn"] span {
  width: 66%;
  background: #b57500;
}

.password-strength-meter[data-strength="good"] span {
  width: 100%;
  background: #16864f;
}

.password-rule-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #435970;
  font-size: 0.88rem;
  line-height: 1.35;
}

.password-rule-list li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 7px;
  align-items: start;
}

.password-rule-list li::before {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: rgba(190, 49, 68, 0.1);
  color: #be3144;
  content: "x";
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1;
  margin-top: 1px;
}

.password-rule-list li[data-passed="true"]::before {
  background: rgba(22, 134, 79, 0.12);
  color: #16864f;
  content: "\2713";
}

.password-rule-copy,
.password-rule-symbols {
  grid-column: 2;
}

.password-rule-symbols {
  margin-top: -4px;
  color: #657b94;
  font-size: 0.8rem;
  line-height: 1.25;
}

.login-create {
  margin: 16px 0 36px;
  color: var(--avl-ink);
  font-size: 1rem;
}

.login-create button,
.forgot-link,
.login-terms a {
  border: 0;
  padding: 0;
  background: transparent;
  color: #007a72;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.login-create button:hover,
.forgot-link:hover,
.login-terms a:hover {
  text-decoration: underline;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.field {
  display: grid;
  gap: 7px;
  margin-top: 14px;
}

.field label {
  color: #334a63;
  font-weight: 600;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  height: 46px;
  min-height: 46px;
  border: 1px solid var(--avl-line);
  border-radius: 8px;
  padding: 0 13px;
  font: inherit;
  box-sizing: border-box;
}

.field select {
  background: #fff;
}

.field textarea {
  height: auto;
  min-height: 140px;
  padding: 12px 13px;
  resize: vertical;
  line-height: 1.5;
}

.field input[type="file"] {
  padding: 11px 13px;
}

.field-help,
.field-error {
  color: #728197;
  font-size: 0.84rem;
  line-height: 1.45;
}

.field-error {
  color: #9c5d00;
  margin: 8px 0 0;
}

.login-field {
  margin-top: 16px;
}

.login-field input {
  min-height: 52px;
  border-color: #cbd5df;
  border-radius: 5px;
  padding: 0 20px;
  color: var(--avl-ink);
  font-size: 1rem;
}

.login-field input::placeholder {
  color: #8d98a8;
}

.login-field input:focus {
  border-color: var(--avl-cyan);
  box-shadow: 0 0 0 3px rgba(18,201,232,0.16);
  outline: none;
}

.password-field {
  position: relative;
}

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

.password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  min-width: 48px;
  height: 34px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #8d98a8;
  font-weight: 600;
  cursor: pointer;
  transform: translateY(-50%);
}

.password-toggle:hover,
.password-toggle:focus {
  color: var(--avl-blue);
  outline: none;
}

.forgot-link {
  display: inline-flex;
  justify-content: flex-start;
}

.login-helper-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
}

.remember-username {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--avl-ink);
  font-size: 0.95rem;
  cursor: pointer;
  white-space: nowrap;
}

.remember-username input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--avl-blue);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.login-button-row {
  margin-top: 36px;
}

.login-submit {
  width: 100%;
  min-height: 52px;
  background: var(--avl-blue);
  color: #fff;
  font-weight: 600;
}

.login-submit:hover,
.login-submit:focus {
  background: var(--avl-blue-2);
  color: #fff;
}

.login-passwordless-button {
  width: 100%;
  min-height: 52px;
  background: #fff;
  color: var(--avl-blue);
  border-color: var(--avl-blue);
  font-weight: 600;
}

.login-passwordless-button:hover,
.login-passwordless-button:focus {
  background: #eef7fb;
  color: var(--avl-blue-2);
  border-color: var(--avl-blue-2);
}

.login-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  margin: 24px 0 32px;
  color: #667386;
}

.login-divider::before,
.login-divider::after {
  content: "";
  height: 1px;
  background: #e5ebf2;
}

.login-options-label {
  margin: 0 0 14px;
  color: var(--avl-ink);
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.login-social-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 0;
}

.social-option {
  min-height: 62px;
  border: 1px solid #d7dee8;
  border-radius: 5px;
  background: #fff;
  cursor: pointer;
}

.social-option:hover,
.social-option:focus {
  border-color: var(--avl-cyan);
  box-shadow: 0 10px 28px rgba(16, 38, 70, 0.1);
  outline: none;
}

.social-option img {
  width: 28px;
  height: 28px;
  margin: 0 auto;
  object-fit: contain;
}

.login-terms {
  margin: 18px 0 0;
  color: var(--avl-ink);
  font-size: 0.9rem;
  line-height: 1.55;
}

.login-panel .screen-subtitle {
  margin-top: 18px;
  color: #667386;
  font-size: 0.9rem;
  line-height: 1.5;
}

.notice {
  border: 1px solid rgba(18,201,232,0.34);
  background: rgba(18,201,232,0.09);
  color: #1f5265;
  padding: 12px 14px;
  border-radius: 8px;
  line-height: 1.45;
}

.reset-password-intro {
  margin-bottom: 24px;
}

.reset-password-status {
  margin-top: 18px;
}

.reset-password-status[data-tone="success"] {
  border-color: rgba(22, 134, 79, 0.3);
  background: rgba(22, 134, 79, 0.09);
  color: #0c5f38;
}

.reset-password-status[data-tone="error"] {
  border-color: rgba(190, 49, 68, 0.3);
  background: rgba(190, 49, 68, 0.09);
  color: #8d1c2d;
}

.auth-action-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(8, 21, 39, 0.56);
}

.auth-action-modal-panel {
  width: min(440px, 100%);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(8, 21, 39, 0.32);
  padding: clamp(24px, 5vw, 34px);
  text-align: center;
}

.auth-action-modal-panel:focus {
  outline: none;
}

.auth-action-modal-panel h2 {
  margin: 8px 0 10px;
  color: var(--avl-blue-2);
  font-size: clamp(1.45rem, 4vw, 2rem);
  line-height: 1.15;
}

.auth-action-modal-panel p:not(.eyebrow) {
  margin: 0;
  color: #435970;
  line-height: 1.55;
}

.auth-action-spinner {
  width: 46px;
  height: 46px;
  margin: 0 auto 18px;
  border: 4px solid rgba(24, 59, 115, 0.18);
  border-top-color: var(--avl-cyan);
  border-radius: 999px;
  animation: avlRefreshSpin 820ms linear infinite;
}

.auth-action-modal-backdrop[data-tone="success"] .auth-action-modal-panel {
  border-top: 5px solid #16864f;
}

.auth-action-modal-backdrop[data-tone="error"] .auth-action-modal-panel {
  border-top: 5px solid #be3144;
}

.auth-action-modal-actions {
  justify-content: center;
  margin-top: 22px;
}

.auth-action-modal-actions .button {
  min-width: 150px;
}

.auth-action-otp-form {
  display: grid;
  gap: 10px;
  margin-top: 20px;
  text-align: left;
}

.auth-action-otp-form label {
  color: #334a63;
  font-weight: 600;
}

.auth-action-otp-form input {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--avl-line);
  border-radius: 8px;
  color: var(--avl-ink);
  font: inherit;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  padding: 0 14px;
  text-align: center;
}

.auth-action-otp-form input:focus {
  border-color: var(--avl-cyan);
  box-shadow: 0 0 0 3px rgba(18,201,232,0.16);
  outline: none;
}

.auth-action-otp-form .button {
  width: 100%;
  background: var(--avl-blue);
  color: #fff;
  border-color: var(--avl-blue);
}

.auth-action-otp-form .button:hover,
.auth-action-otp-form .button:focus {
  background: var(--avl-blue-2);
  border-color: var(--avl-blue-2);
  color: #fff;
}

.hidden {
  display: none !important;
}

.list {
  display: grid;
  gap: 12px;
}

.list-item {
  border: 1px solid var(--avl-line);
  border-radius: 8px;
  background: #fff;
  padding: 16px;
}

.list-item h3 {
  margin: 0;
  color: var(--avl-blue-2);
}

.list-item p {
  margin: 7px 0 0;
  color: #53687e;
}

.device-card {
  display: grid;
  gap: 12px;
}

.connector-card {
  display: grid;
  gap: 12px;
}

.device-detail-card {
  gap: 14px;
}

.device-action-row {
  margin-top: 0;
}

.card-heading-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.card-heading-row p {
  margin-top: 6px;
}

.status-dot {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--avl-yellow);
  box-shadow: 0 0 0 5px rgba(255,210,46,0.18);
}

.status-dot.good {
  background: var(--avl-green);
  box-shadow: 0 0 0 5px rgba(123,220,88,0.18);
}

.status-dot.warn {
  background: var(--avl-yellow);
}

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

.detail-grid div,
.readiness-item,
.mini-item {
  border: 1px solid rgba(217, 228, 239, 0.78);
  border-radius: 8px;
  background: #f7fbff;
  padding: 12px;
}

.detail-grid dt,
.readiness-item strong,
.mini-item strong {
  display: block;
  color: var(--avl-blue-2);
  font-size: 0.82rem;
  font-weight: 600;
}

.detail-grid dd {
  margin: 5px 0 0;
  color: #435970;
  font-weight: 600;
}

.inline-link {
  justify-self: start;
  color: var(--avl-blue);
  font-weight: 600;
  text-decoration: none;
}

.inline-link:hover {
  text-decoration: underline;
}

.mini-list,
.readiness-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.release-summary-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.account-status-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.account-profile-form {
  margin-top: 1rem;
}

.account-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.checkbox-field {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #334a63;
  font-weight: 600;
}

.checkbox-field input {
  width: 18px;
  height: 18px;
  accent-color: var(--avl-blue);
}

.account-newsletter-field {
  align-self: end;
  min-height: 46px;
}

.account-newsletter-help {
  margin-top: -0.55rem;
}

.device-readiness-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.remote-readiness-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.remote-status-buttons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.remote-command-list {
  margin-top: 16px;
}

.remote-command-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.remote-command-item h3 {
  font-size: 0.98rem;
}

.remote-command-item small {
  display: block;
  margin-top: 6px;
  color: #728197;
  font-size: 0.8rem;
}

.connector-summary-list,
.connector-explain-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.connector-list {
  margin-top: 22px;
}

.connector-side-card {
  align-self: start;
}

.remote-side-card {
  align-self: start;
}

.support-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 18px;
  align-items: start;
}

.support-intro-card {
  grid-column: 1 / -1;
}

.support-intro-card h3 {
  max-width: 760px;
  margin: 0;
  color: var(--avl-blue-2);
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  line-height: 1.08;
}

.support-intro-card p {
  max-width: 900px;
  line-height: 1.65;
}

.support-step-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.support-step-card {
  display: block;
  width: 100%;
  border-left: 4px solid rgba(18, 201, 232, 0.52);
  border-top: 0;
  border-right: 0;
  border-bottom: 0;
  background: #f7fbff;
  border-radius: 0 8px 8px 0;
  padding: 12px 14px;
  color: inherit;
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  appearance: none;
}

.support-step-card:hover,
.support-step-card:focus {
  background: #eef8ff;
  outline: 3px solid rgba(18, 201, 232, 0.24);
  outline-offset: 2px;
}

.support-step-list strong,
.support-step-list span {
  display: block;
}

.support-step-list strong {
  color: var(--avl-blue-2);
  font-weight: 600;
}

.support-step-list span {
  margin-top: 5px;
  color: #53687e;
  line-height: 1.45;
}

.section-title-with-icon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.section-title-with-icon img {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(19%) sepia(53%) saturate(1115%) hue-rotate(184deg) brightness(90%) contrast(94%);
}

.support-form-card {
  align-self: start;
}

.support-form-card .card-heading-row {
  align-items: flex-start;
}

.support-form-card .tag {
  flex: 0 0 auto;
}

.support-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: start;
}

.support-form-grid > .field {
  align-content: start;
  margin-top: 0;
}

.support-subject-field {
  grid-column: 1 / -1;
}

.support-category-help {
  display: block;
  margin-top: 8px;
  border-left: 3px solid rgba(18, 201, 232, 0.5);
  background: #f7fbff;
  border-radius: 0 8px 8px 0;
  padding: 9px 11px;
  line-height: 1.45;
}

.support-tickets-card {
  align-self: start;
}

.support-tickets-card > p {
  line-height: 1.55;
}

.support-details-card {
  grid-column: 1 / -1;
}

.support-details-card .support-snapshot-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.support-summary {
  width: 100%;
  max-height: 210px;
  overflow: auto;
  margin: 16px 0 0;
  border: 1px solid rgba(8, 21, 39, 0.08);
  border-radius: 8px;
  background: #081527;
  color: #e8f6ff;
  padding: 14px;
  font: 0.84rem/1.55 Consolas, "Liberation Mono", Menlo, monospace;
  white-space: pre-wrap;
}

.support-ticket-form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.support-ticket-list {
  margin-top: 16px;
  gap: 10px;
  max-height: 620px;
  overflow: auto;
  padding-right: 4px;
}

.support-ticket-card {
  display: grid;
  gap: 0;
}

.support-ticket-row {
  padding: 14px;
  transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.support-ticket-row:hover,
.support-ticket-row:focus-within {
  background: #f7fbff;
  border-color: rgba(24, 59, 115, 0.2);
}

.support-ticket-row.selected {
  border-color: rgba(24, 59, 115, 0.24);
  box-shadow: inset 3px 0 0 var(--avl-blue);
}

.support-ticket-row-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
}

.support-ticket-row-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.support-ticket-open-button {
  justify-content: center;
  width: 42px;
  min-width: 42px;
  min-height: 38px;
  padding: 0;
}

.support-ticket-open-button img {
  width: 21px;
  height: 21px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.support-ticket-card .card-heading-row {
  align-items: center;
  gap: 10px;
}

.support-ticket-card h3 {
  color: var(--avl-ink);
  font-size: 0.98rem;
  line-height: 1.25;
}

.support-ticket-card .tag {
  flex: 0 0 auto;
  padding: 5px 8px;
  font-size: 0.76rem;
}

.ticket-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: #728197;
  font-size: 0.84rem;
}

.support-ticket-row .ticket-meta {
  margin-top: 8px;
}

.support-message-list {
  display: grid;
  gap: 10px;
}

.support-message {
  border: 1px solid rgba(217, 228, 239, 0.9);
  border-radius: 8px;
  background: #f7fbff;
  padding: 12px;
}

.support-message.staff {
  border-color: rgba(18, 201, 232, 0.34);
  background: rgba(18, 201, 232, 0.08);
}

.support-message header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  color: var(--avl-blue-2);
}

.support-message header strong {
  font-weight: 600;
}

.support-message header span {
  color: #728197;
  font-size: 0.8rem;
}

.support-message p {
  margin: 8px 0 0;
  color: #334a63;
  line-height: 1.5;
}

.support-ticket-reply-form {
  display: grid;
  gap: 8px;
  border-top: 1px solid rgba(217, 228, 239, 0.95);
  padding-top: 12px;
}

.support-ticket-reply-form label {
  color: var(--avl-blue-2);
  font-weight: 600;
}

.support-ticket-reply-form textarea {
  width: 100%;
  min-height: 96px;
  border: 1px solid var(--avl-line);
  border-radius: 8px;
  padding: 11px 12px;
  font: inherit;
  line-height: 1.45;
  resize: vertical;
}

.support-ticket-reply-form .button-row {
  margin-top: 2px;
}

.support-ticket-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(8, 21, 39, 0.54);
}

.support-ticket-modal-panel {
  width: min(920px, 100%);
  max-height: min(820px, calc(100vh - 48px));
  overflow: auto;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(8, 21, 39, 0.32);
  padding: clamp(20px, 3vw, 28px);
}

.support-ticket-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.support-ticket-modal-header h2 {
  margin: 0;
  color: var(--avl-blue-2);
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.12;
}

.support-modal-close {
  flex: 0 0 auto;
  min-height: 38px;
  border: 1px solid var(--avl-line);
  border-radius: 8px;
  background: #fff;
  color: var(--avl-blue);
  font: inherit;
  font-weight: 600;
  padding: 0 13px;
  cursor: pointer;
}

.support-modal-close:hover,
.support-modal-close:focus {
  border-color: var(--avl-blue);
  outline: none;
}

.support-ticket-modal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0 0;
}

.support-ticket-modal-grid div {
  border: 1px solid rgba(217, 228, 239, 0.78);
  border-radius: 8px;
  background: #f7fbff;
  padding: 12px;
}

.support-ticket-modal-grid dt {
  color: var(--avl-blue-2);
  font-size: 0.82rem;
  font-weight: 600;
}

.support-ticket-modal-grid dd {
  margin: 5px 0 0;
  color: #435970;
  overflow-wrap: anywhere;
}

.support-ticket-modal-section {
  display: grid;
  gap: 12px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--avl-line);
}

.support-ticket-modal-section h3 {
  margin: 0;
  color: var(--avl-blue-2);
}

.attachment-list {
  color: #53687e;
  font-size: 0.86rem;
}

.attachment-list ul {
  display: grid;
  gap: 6px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.attachment-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(217, 228, 239, 0.78);
  border-radius: 8px;
  background: #f7fbff;
  padding: 8px 10px;
}

.attachment-list span {
  flex: 0 0 auto;
  color: #728197;
}

.empty-state {
  display: grid;
  gap: 14px;
  border: 1px dashed rgba(24, 59, 115, 0.24);
  border-radius: 8px;
  background: #f7fbff;
  padding: clamp(18px, 4vw, 24px);
}

.empty-state h3 {
  margin: 0;
  color: var(--avl-blue-2);
}

.empty-state p {
  margin: 0;
  color: #53687e;
  line-height: 1.55;
}

.setup-path-card {
  align-self: start;
}

.setup-steps {
  display: grid;
  gap: 8px;
  margin: 16px 0 0;
  padding-left: 1.25rem;
  color: #435970;
  line-height: 1.45;
}

.mini-item span,
.readiness-item span,
.mini-item small {
  display: block;
  margin-top: 5px;
  color: #53687e;
  line-height: 1.4;
}

.mini-item small {
  font-size: 0.78rem;
}

.release-side-card {
  align-self: start;
}

.release-section-heading {
  margin: 24px 0 12px;
}

.release-section-heading h4 {
  margin: 0;
  color: var(--avl-blue-2);
  font-size: 1rem;
}

.release-section-heading p {
  margin-top: 5px;
}

.release-device-card {
  display: grid;
  gap: 12px;
}

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

.release-note {
  border: 1px solid rgba(217, 228, 239, 0.78);
  border-radius: 8px;
  background: #f7fbff;
  padding: 12px;
}

.release-note.good {
  border-color: rgba(123,220,88,0.32);
  background: rgba(123,220,88,0.12);
}

.release-note.warn {
  border-color: rgba(255,210,46,0.36);
  background: rgba(255,210,46,0.13);
}

.release-note strong {
  display: block;
  color: var(--avl-blue-2);
  font-size: 0.82rem;
  font-weight: 600;
}

.release-note span {
  display: block;
  margin-top: 5px;
  color: #53687e;
  line-height: 1.4;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #eef5fb;
  color: #304861;
  font-size: 0.82rem;
  font-weight: 600;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  white-space: nowrap;
}

.tag.good {
  background: rgba(123,220,88,0.18);
  color: #245a19;
}

.tag.warn {
  background: rgba(255,210,46,0.24);
  color: #6d5600;
}

.tag.bad {
  background: rgba(237,48,62,0.12);
  color: #90202a;
}

.cloud-setup-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
  border-color: rgba(38, 141, 210, 0.28);
  background: linear-gradient(135deg, #f7fbff 0%, #eef7ff 100%);
}

.cloud-setup-panel h2 {
  margin: 0 0 8px;
  color: var(--avl-blue-2);
  font-size: 1.35rem;
}

.cloud-setup-panel p {
  margin: 0;
}

@media (max-width: 980px) {
  .hero,
  .portal-grid,
  .support-layout,
  .grid.three,
  .grid.two,
  .quick-start-card,
  .cta-band {
    grid-template-columns: 1fr;
  }

  .product-stage {
    min-height: 0;
  }

  .hero-proof,
  .status-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portal-shell {
    height: auto;
    min-height: 100vh;
    grid-template-columns: 1fr;
    overflow: visible;
  }

  .portal-sidebar {
    height: auto;
    overflow: visible;
    position: static;
  }

  .portal-main {
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  .portal-header-actions {
    align-items: flex-end;
  }

  .cloud-setup-panel {
    grid-template-columns: 1fr;
  }

  .portal-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .account-status-grid,
  .account-form-grid,
  .register-contact-preferences,
  .register-password-fields,
  .password-rule-list,
  .connector-summary-list,
  .connector-explain-list,
  .device-readiness-list,
  .remote-readiness-list,
  .remote-status-buttons,
  .release-summary-list,
  .release-note-list,
  .support-step-list,
  .support-form-grid,
  .support-details-card .support-snapshot-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .topbar,
  .footer,
  .portal-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .portal-header-actions,
  .support-header-actions {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }

  .support-header-actions .button {
    width: 100%;
  }

  .portal-refresh-button {
    width: 100%;
  }

  .support-ticket-row-main,
  .support-ticket-row-actions,
  .support-ticket-modal-header {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .support-ticket-row-main,
  .support-ticket-row-actions,
  .support-ticket-modal-header {
    display: grid;
  }

  .support-ticket-open-button,
  .support-modal-close {
    width: 100%;
  }

  .support-ticket-modal-backdrop {
    padding: 12px;
  }

  .support-ticket-modal-grid {
    grid-template-columns: 1fr;
  }

  .nav-links {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .device-pair {
    grid-template-columns: 1fr;
  }

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

  .login-social-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .status-strip {
    grid-template-columns: 1fr;
  }

  .card-heading-row {
    display: grid;
  }

  .back-to-top-button {
    right: 16px;
    bottom: 16px;
    width: 48px;
    height: 48px;
  }
}
