/* Copyright (c) 2026 VideoAgentAI. All rights reserved. SPDX-License-Identifier: LicenseRef-VideoAgentAI-AllRightsReserved */
/* Account, device approval and beta administration. Operate surfaces in the site's world:
   divided rows instead of cards, condensed headings, lavender actions, cyan state. */
.account-page { padding-top: 80px; padding-bottom: 112px; min-height: 70vh; }
.account-intro { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: end; margin-bottom: 72px; }
.account-intro h1 { font-family: var(--display); font-weight: 600; letter-spacing: -.025em; font-size: clamp(56px, 7vw, 96px); line-height: .98; overflow-wrap: anywhere; }
.account-intro h1 span { color: var(--violet); }
.account-intro p { max-width: 58ch; margin: 0 0 12px; }
.account-intro p:last-child { margin-bottom: 0; }

/* The beta journey is a real sequence, so it is shown as one: account, verification, licence. */
.access-path { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; padding: 0; margin: 0 0 72px; }
.access-path li { border-top: 2px solid var(--line); padding-top: 18px; color: var(--muted); }
.access-path strong { display: flex; align-items: center; gap: 12px; font: 600 clamp(26px, 2.4vw, 36px)/1.1 var(--display); color: var(--muted); }
.access-path span { display: block; margin-top: 6px; font-size: 14px; max-width: 34ch; }
.access-path .done { border-top-color: var(--cyan); }
.access-path .done strong { color: var(--text); }
.access-path .done .icon { color: var(--cyan); }
.access-path .current { border-top-color: var(--violet); }
.access-path .current strong { color: var(--violet); }

.account-section { display: grid; grid-template-columns: minmax(220px, 1fr) 2fr; gap: 56px; padding: 40px 0; border-top: 1px solid var(--line); }
.account-section.wide { grid-template-columns: 1fr; gap: 24px; }
.account-section.wide > div:first-child { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 32px; }
.account-section.wide > div:first-child p { margin-top: 0; max-width: 60ch; }
.account-section > div:first-child h2 { font-size: clamp(36px, 3.4vw, 52px); }
.account-section > div:first-child p { margin-top: 12px; max-width: 40ch; font-size: 15px; }
.rows { display: grid; }
.row { display: grid; grid-template-columns: 1fr auto; gap: 8px 32px; align-items: center; padding: 18px 0; border-top: 1px solid var(--line); }
.row:first-child { border-top: 0; padding-top: 0; }
.row h3 { font-size: 28px; line-height: 1.1; overflow-wrap: anywhere; }
.row p { font-size: 14px; margin: 2px 0 0; }
.row .actions-inline { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: flex-end; }
.empty { font-size: 15px; }

/* Status words carry a dot so state never relies on color alone. */
.state { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.state::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.state.on { color: var(--cyan); }
.state.wait { color: var(--violet); }
.state.off { color: #9aa3b0; }
.state.off::before { background: transparent; border: 1.5px solid currentColor; }

/* Forms */
.auth-grid { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.auth-grid > section { padding: 40px 56px 0 0; }
.auth-grid > section + section { padding: 40px 0 0 56px; border-left: 1px solid var(--line); }
.auth-grid h2 { font-size: clamp(40px, 3.8vw, 60px); margin-bottom: 12px; }
.auth-grid > section > p { max-width: 52ch; margin-bottom: 28px; font-size: 15px; }
.form { display: grid; gap: 20px; max-width: 520px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 14px; font-weight: 600; color: var(--text); }
.field .hint { font-size: 13px; color: var(--muted); }
.field input, .field textarea, .field select {
  width: 100%; min-height: 48px; padding: 11px 14px; border: 1px solid #4b5462; border-radius: 3px;
  background: var(--panel); color: var(--text); font: inherit; font-size: 16px; caret-color: var(--cyan);
  transition: border-color .15s, background-color .15s;
}
.field textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(-45deg, transparent 50%, var(--muted) 50%); background-position: right 20px center, right 14px center; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.field input::placeholder, .field textarea::placeholder { color: #8d96a3; }
.field input:hover, .field textarea:hover, .field select:hover { border-color: #6b7483; }
.field :is(input, textarea, select):focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-color: var(--cyan); }
.field input:-webkit-autofill { -webkit-text-fill-color: var(--text); box-shadow: 0 0 0 40px var(--panel) inset; caret-color: var(--cyan); }
.field [aria-invalid="true"] { border-color: var(--coral); }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 4px; }
.button:disabled { opacity: .55; cursor: progress; }
.button.secondary { background: transparent; color: var(--text); border-color: #657080; }
.button.secondary:hover { background: #242936; border-color: var(--violet); }
.text-button { padding: 0; color: var(--text); text-decoration: underline; text-decoration-color: #657080; text-underline-offset: .3em; }
.text-button:hover { text-decoration-color: currentColor; }
.text-button.danger { color: var(--coral); text-decoration-color: rgba(248, 181, 162, .45); }
.text-button:disabled { opacity: .55; cursor: progress; }

/* Messages appear next to the action that caused them and are announced. */
.message { min-height: 0; font-size: 15px; color: var(--text); }
.message:empty { display: none; }
.message.error { color: var(--coral); }
.message.ok { color: var(--cyan); }
.message .icon { margin-right: 8px; }

.code-entry { display: grid; gap: 28px; max-width: 640px; }
.device-code { font: 600 clamp(48px, 6vw, 84px)/1 var(--display); letter-spacing: .06em; color: var(--text); font-variant-numeric: tabular-nums; }
.device-meta { display: flex; align-items: center; gap: 14px; font-size: 16px; color: var(--muted); }
.device-meta .icon { width: 24px; height: 24px; color: var(--cyan); }
.outcome { display: grid; gap: 16px; max-width: 640px; padding-top: 8px; }
.outcome h2 { font-size: clamp(44px, 5vw, 72px); }
.outcome h2 span { color: var(--cyan); }

details.disclose > summary { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; cursor: pointer; font-size: 15px; color: var(--text); list-style: none; }
details.disclose > summary::-webkit-details-marker { display: none; }
details.disclose > summary .icon { transition: transform .25s var(--ease-cut); }
details.disclose[open] > summary .icon { transform: rotate(45deg); }
details.disclose > .form { padding: 16px 0 8px; }

.loading { color: var(--muted); font-size: 15px; }
.signed-in-as { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: 24px; font-size: 14px; color: var(--muted); }

/* Admin directory */
.admin-toolbar { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; margin-bottom: 8px; }
.admin-toolbar .state { font-size: 14px; }
.person { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1.4fr); gap: 16px 40px; padding: 26px 0; border-top: 1px solid var(--line); align-items: start; }
.person h3 { font-size: 28px; line-height: 1.1; overflow-wrap: anywhere; }
.person .who p { font-size: 14px; margin-top: 4px; overflow-wrap: anywhere; }
.person blockquote { margin: 10px 0 0; font-size: 14px; color: var(--text); max-width: 46ch; }
.person .licences { display: grid; gap: 10px; font-size: 14px; }
.person .licences p { font-size: 14px; }
.person .ops { display: grid; gap: 14px; }
.person .ops .form { gap: 14px; max-width: none; }
.person .ops .split { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.reset-link { display: grid; gap: 8px; }
.reset-link code { display: block; padding: 10px 12px; background: var(--panel); border: 1px solid var(--line); font-size: 13px; overflow-wrap: anywhere; user-select: all; }

@media (max-width: 1050px) {
  .account-intro { grid-template-columns: 1fr; gap: 24px; }
  .account-section { grid-template-columns: 1fr; gap: 24px; }
  .person { grid-template-columns: 1fr 1fr; }
  .person .ops { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .account-page { padding-top: 48px; padding-bottom: 72px; }
  .account-intro { margin-bottom: 48px; }
  .access-path { grid-template-columns: 1fr; gap: 0; margin-bottom: 48px; }
  .access-path li { padding: 14px 0 16px; }
  .auth-grid { grid-template-columns: 1fr; }
  .auth-grid > section, .auth-grid > section + section { padding: 32px 0 0; border-left: 0; }
  .auth-grid > section + section { margin-top: 40px; border-top: 1px solid var(--line); }
  .row { grid-template-columns: 1fr; }
  .row .actions-inline { justify-content: flex-start; }
  .person { grid-template-columns: 1fr; }
  .person .ops .split { grid-template-columns: 1fr; }
  .form-actions .button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  details.disclose > summary .icon, .field input, .field textarea, .field select { transition: none; }
}
.spaced { margin-top: 24px; }
