/* linevak dashboard, console and status pages (on top of styles.css + linevak.css). */
.dash { padding: 40px 28px 88px; display: grid; gap: 18px; max-width: 980px; }
.dash h1 { font-size: clamp(26px, 3vw, 34px); font-weight: 800; letter-spacing: -.03em; line-height: 1.15; }
.dash h2 { font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.dash .muted { color: var(--text-mid); font-size: 15px; margin-top: 4px; }
.dash-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow-xs); display: grid; gap: 14px; }
.dash-card.narrow { max-width: 620px; margin: 30px auto 0; width: 100%; }
.dash-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.row .in { flex: 1 1 240px; }
.in { width: 100%; font: inherit; font-size: 15px; padding: 11px 13px; border: 1px solid var(--border); border-radius: 10px; background: #fff; color: var(--text); }
.in:focus { outline: 2px solid rgba(var(--accent-rgb), .35); border-color: var(--accent); }
label { display: grid; gap: 5px; font-size: 13.5px; color: var(--text-mid); font-weight: 500; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid-2.tight { gap: 8px; }
.span-2 { grid-column: 1 / -1; }
@media (max-width: 640px) { .grid-2 { grid-template-columns: 1fr; } .dash { padding: 28px 16px 64px; } }
.field-lbl { font-size: 13.5px; color: var(--text-mid); font-weight: 600; margin-top: 4px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { display: inline-flex; flex-direction: row; align-items: center; gap: 7px; border: 1px solid var(--border); border-radius: 999px; padding: 7px 13px; font-size: 14px; color: var(--text); cursor: pointer; background: #fff; }
.chip input { accent-color: var(--accent-strong); }
.note-line { font-size: 14px; color: var(--text-mid); min-height: 1em; }
.note-line.ok { color: #15803d; font-weight: 600; } .note-line.err { color: #b91c1c; font-weight: 600; }
.steps-list { margin: 4px 0 0; padding-left: 20px; display: grid; gap: 6px; color: var(--text-mid); font-size: 14.5px; }
.steps-list b { color: var(--text); }
.usage { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 14px; color: var(--text-mid); }
.usage .bar { flex: 1 1 240px; height: 8px; border-radius: 99px; background: var(--bg-alt); overflow: hidden; }
.usage .bar i { display: block; height: 100%; width: 0; background: var(--grad-cta); border-radius: 99px; transition: width .4s; }
.wrap-row { flex-wrap: wrap; }
.app-item, .brand-item, .port-item { border: 1px solid var(--border); border-radius: 14px; padding: 16px; display: grid; gap: 10px; }
.app-item h3, .brand-item h3, .port-item h3 { font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.kv { display: grid; grid-template-columns: 130px 1fr; gap: 6px 12px; font-size: 13.5px; }
.kv dt { color: var(--text-dim); } .kv dd { margin: 0; font-family: "JetBrains Mono", monospace; font-size: 12.5px; word-break: break-all; }
@media (max-width: 560px) { .kv { grid-template-columns: 1fr; } }
.secret { border: 1px solid #fde68a; background: #fffbeb; border-radius: 12px; padding: 14px; display: grid; gap: 8px; font-size: 14px; }
.secret code, .snippet { font-family: "JetBrains Mono", monospace; font-size: 12.5px; }
.snippet { background: #0b1020; color: #cbd5e1; border-radius: 10px; padding: 12px 14px; overflow-x: auto; white-space: pre; margin: 0; }
.pill { display: inline-flex; align-items: center; font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: var(--bg-alt); color: var(--text-mid); }
.pill.ok { background: #dcfce7; color: #166534; } .pill.warn { background: #fef3c7; color: #92400e; } .pill.bad { background: #fee2e2; color: #991b1b; } .pill.ac { background: var(--accent-soft); color: var(--accent-ink); }
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th, .tbl td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border-soft); vertical-align: top; }
.tbl th { font-size: 11.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--text-dim); font-weight: 700; }
.tbl-wrap { overflow-x: auto; }
.btn.sm { font-size: 13px; padding: 7px 12px; border-radius: 8px; }
.timeline { display: flex; gap: 6px; flex-wrap: wrap; font-size: 12.5px; color: var(--text-mid); }
.brand-form { display: grid; gap: 12px; border-top: 1px solid var(--border-soft); padding-top: 14px; }
[hidden] { display: none !important; }
#dash, #console { display: grid; gap: 18px; }
.dash-card > .btn, .dash-card > button { justify-self: start; }
.auth-box { border: 1px solid var(--border); background: var(--bg-alt); border-radius: 12px; padding: 14px; display: grid; gap: 10px; font-size: 14px; }
.auth-box p { color: var(--text); line-height: 1.55; font-size: 14px; }
.port-plain { font-size: 14.5px; color: var(--text); }
.port-date { font-size: 16px; font-weight: 700; }
#ports { display: grid; gap: 12px; }
#ports:empty { display: none; }
.add-email { margin-top: 12px; }
.add-email .note-line { flex-basis: 100%; margin: 0; }

/* /start signed out: one focused column. A code to the phone first (linevak's own consent box), the email link under it. */
/* While signed out the marketing nav and big footer step aside (logo + EN|ES stay). */
body:not(:has(#dash:not([hidden]))) .nav-links,
body:not(:has(#dash:not([hidden]))) .nav-toggle,
body:not(:has(#dash:not([hidden]))) > footer { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.fs {
  min-height: calc(100vh - 65px); display: flex; flex-direction: column; align-items: center;
  padding: 18vh 16px 28px; background:
    radial-gradient(520px 320px at 50% 22%, rgba(var(--accent-rgb), .07), transparent 70%), var(--bg, #fff);
}
.fs-col { width: 100%; max-width: 400px; display: grid; justify-items: center; text-align: center; }
#signinMain, .fs-sent { width: 100%; display: grid; justify-items: center; }
.fs-icon { width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; color: #fff; background: var(--grad-cta); box-shadow: 0 10px 24px -12px rgba(var(--accent-deep-rgb), .6); margin-bottom: 20px; }
.fs-icon svg { width: 24px; height: 24px; }
.fs-title { font-size: 28px; font-weight: 800; letter-spacing: -.03em; line-height: 1.2; color: var(--text); outline: none; text-wrap: balance; }
.fs-sub { margin-top: 8px; font-size: 15px; line-height: 1.5; color: var(--text-mid); text-wrap: balance; }
.fs-sub b { color: var(--text); overflow-wrap: anywhere; }
.fs-form { width: 100%; display: grid; gap: 10px; margin-top: 26px; }
.fs-in { width: 100%; font: inherit; font-size: 16px; padding: 13px 14px; color: var(--text); background: #fff; border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-xs); transition: border-color .15s ease, box-shadow .15s ease; }
.fs-in::placeholder { color: #8a97a8; }
.fs-in:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .14); }
.fs-btn { display: inline-flex; align-items: center; justify-content: center; width: 100%; font: inherit; font-size: 16px; font-weight: 700; padding: 13px 18px; border: 0; border-radius: 12px; color: #fff; background: var(--grad-cta); box-shadow: 0 10px 24px -12px rgba(var(--accent-deep-rgb), .65); cursor: pointer; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.fs-btn:hover { transform: translateY(-1px); box-shadow: 0 14px 30px -12px rgba(var(--accent-deep-rgb), .7); }
.fs-btn:disabled { opacity: .7; cursor: progress; transform: none; }
.fs-btn:focus-visible, .fs-back:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.fs-note { margin-top: 14px; min-height: 1.4em; font-size: 13.5px; color: var(--text-dim); text-wrap: balance; }
.fs-note.is-ok { color: var(--accent-ink); font-weight: 600; }
.fs-note.is-err { color: #b91c1c; font-weight: 600; }
.fs-sent .sent-actions { width: 100%; display: grid; gap: 8px; margin-top: 22px; }
.fs-sent .sent-actions.small { grid-template-columns: 1fr 1fr; }
.fs-sent .sent-actions.small .fs-btn { font-size: 15px; color: var(--text); background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow-xs); }
.sent-links { margin-top: 6px; display: flex; gap: 8px; align-items: center; justify-content: center; flex-wrap: wrap; color: var(--text-dim); font-size: 14px; }
.linkbtn { font: inherit; font-size: 14px; background: none; border: 0; padding: 4px 2px; color: var(--accent-ink); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(var(--accent-rgb), .35); }
.linkbtn:disabled { color: var(--text-dim); font-weight: 500; cursor: default; text-decoration: none; }
.linkbtn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.fs-back { margin-top: 30px; font-size: 14px; color: var(--text-dim); text-decoration: none; }
.fs-back:hover { color: var(--text); }
.fs-foot { margin-top: auto; padding-top: 40px; font-size: 12.5px; color: var(--text-dim); text-align: center; }
.fs-foot a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 520px) {
  .fs { padding-top: 10vh; }
  .fs-sent .sent-actions.small { grid-template-columns: 1fr; }
  .sent-links { flex-direction: column; gap: 2px; } .sent-links > span[aria-hidden] { display: none; }
}

/* phone sign-in inside the column: linevak's own consent box, chips, secondary email button */
.fs-chips { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.fs-chips .chip { font-size: 14.5px; padding: 8px 14px; }
.fs-chips .chip:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); }
.fs-consent { width: 100%; text-align: left; }
.fs-consent .lvk-consent { margin: 2px 0 0; font-size: 13px; color: var(--text-mid); }
#phoneSend:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; transform: none; }
#phoneSend[aria-busy="true"] { opacity: .7; cursor: progress; }
.or-line { width: 100%; display: flex; align-items: center; gap: 12px; color: var(--text-dim); font-size: 13px; margin-top: 22px; }
.or-line::before, .or-line::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.fs-form-email { margin-top: 14px; }
.fs-btn-alt { color: var(--text); background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow-xs); }
.fs-btn-alt:hover { box-shadow: var(--shadow-sm, var(--shadow-xs)); border-color: var(--text-dim); }
.code-in { font-family: "JetBrains Mono", ui-monospace, monospace; letter-spacing: .4em; font-size: 24px; text-align: center; }
.code-in::placeholder { letter-spacing: .25em; }
