/* Accounts: learner form, trial gate and trial chip. Uses the app's design tokens (light and dark). */
.hlot-auth .stack { gap: 12px; }
.hlot-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hlot-field-error .input { border-color: var(--bad); }
.hlot-field-message { color: var(--bad); font-size: 12.5px; }
.hlot-consent { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; font-size: 13px; color: var(--muted); line-height: 1.55; }
.hlot-consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--primary); }
.hlot-consent a { color: var(--primary); font-weight: 600; }
.hlot-consent.hlot-field-error span { color: var(--bad); }
.hlot-link { justify-self: start; padding: 4px 0; border: 0; background: none; color: var(--primary); font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.hlot-link:hover { text-decoration: underline; }
.hlot-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.alert.ok { background: var(--ok-soft); color: var(--ok); border-radius: var(--radius-sm); padding: 10px 12px; font-size: 13.5px; }

/* Learner profile on the account page. */
.hlot-profile-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.hlot-badge { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.hlot-badge.ok { background: var(--ok-soft); color: var(--ok); }
.hlot-badge.warn { background: var(--warn-soft); color: var(--warn); }
.hlot-profile-list { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0; font-size: 14px; }
.hlot-profile-list dt { color: var(--muted); }
.hlot-profile-list dd { margin: 0; font-weight: 600; word-break: break-word; }
.hlot-verify { padding: 14px; border-radius: var(--radius-sm); background: var(--warn-soft); }
.hlot-verify p { font-size: 14px; line-height: 1.6; }

/* Blocking dialog once the trial is used (or details are missing). */
html.hlot-gated, html.hlot-gated body { overflow: hidden; }
.hlot-gate { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 16px; background: rgba(9, 18, 34, .62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); overflow-y: auto; }
.hlot-gate-panel { width: min(560px, 100%); max-height: calc(100dvh - 32px); overflow-y: auto; padding: 24px; border-radius: 20px; background: var(--surface); color: var(--text); box-shadow: 0 24px 60px rgba(0, 0, 0, .35); }
.hlot-gate-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.hlot-gate-head img { border-radius: 12px; flex: none; }
.hlot-gate-head h2 { margin: 0; font-size: 20px; letter-spacing: -.3px; line-height: 1.3; }
.hlot-gate-kicker { margin: 0 0 2px; font-size: 10.5px; font-weight: 750; letter-spacing: .12em; color: var(--primary); }
.hlot-gate-lead { margin: 0 0 16px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.hlot-gate .seg { width: 100%; }
.hlot-gate-signout { display: block; margin: 14px auto 0; color: var(--muted); }

/* Trial countdown chip. */
.hlot-trial-chip { position: fixed; z-index: 60; left: 50%; transform: translateX(-50%); bottom: 20px; display: inline-flex; align-items: center; gap: 10px; padding: 8px 8px 8px 14px; border-radius: 999px; background: #172c4e; color: #eaf2ff; font-size: 13px; text-decoration: none; box-shadow: 0 10px 28px rgba(9, 18, 34, .3); }
.hlot-trial-chip:hover { color: #fff; }
.hlot-trial-chip b { font-variant-numeric: tabular-nums; color: #fff; }
.hlot-trial-dot { width: 8px; height: 8px; border-radius: 50%; background: #5fd3a5; box-shadow: 0 0 0 4px rgba(95, 211, 165, .2); }
.hlot-trial-low .hlot-trial-dot { background: #ffb547; box-shadow: 0 0 0 4px rgba(255, 181, 71, .22); }
.hlot-trial-cta { padding: 6px 12px; border-radius: 999px; background: #8dbbff; color: #0f213f; font-weight: 750; }
@media (max-width: 767px) {
  .hlot-form-row { grid-template-columns: 1fr; }
  .hlot-gate { align-items: end; padding: 0; }
  .hlot-gate-panel { border-radius: 20px 20px 0 0; max-height: 92dvh; padding: 20px 16px calc(20px + env(safe-area-inset-bottom)); }
  .hlot-trial-chip { font-size: 12px; }
}
/* The help button would cover the dialog's buttons on phones. */
html.hlot-gated #otlx-support { display: none !important; }

/* The app shows its bottom tab bar up to 1023px: keep the trial chip above it. */
@media (max-width: 1023px) { .hlot-trial-chip { bottom: calc(var(--nav-h, 64px) + 12px + env(safe-area-inset-bottom)); } }
@media (pointer: coarse) { .hlot-link { display: inline-flex; align-items: center; min-height: 40px; } }
