/* Limitless v7 | login, account and admin (same tokens as site.css) */
.portal { display: grid; place-items: center; padding: 8vh 0 10vh; }
.p-card { width: 100%; max-width: 520px; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 32px; box-shadow: 0 30px 80px -40px rgba(88, 199, 255, .25); }
.p-card h1 { font-size: clamp(30px, 4vw, 40px); }
.p-logo { width: 52px; height: auto; margin-bottom: 18px; }
.p-form { display: grid; gap: 16px; margin-top: 24px; }
.p-field { display: grid; gap: 6px; }
.p-field label { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-2); }
.p-field input, .p-field textarea, .p-field select { width: 100%; min-height: 52px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg); color: var(--text); font: 500 16px/1.4 var(--body); transition: border-color .15s; }
.p-field textarea { resize: vertical; min-height: 72px; }
.p-field select { appearance: none; -webkit-appearance: none; padding-right: 44px; background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%2358C7FF' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 16px center; }
.p-field input:focus-visible, .p-field textarea:focus-visible, .p-field select:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.p-field input::placeholder, .p-field textarea::placeholder { color: #5d6570; }
.p-submit { width: 100%; }
.p-error { margin: 0; padding: 12px 14px; border-radius: 10px; background: rgba(255, 99, 99, .1); border: 1px solid rgba(255, 99, 99, .35); color: #ffb4b4; font-size: 15px; }
.portal .note { margin-top: 20px; color: var(--muted); font-size: 15px; }
.p-facts { margin: 22px 0 0; display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.p-facts div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 16px; background: var(--bg); }
.p-facts dt { color: var(--muted); } .p-facts dd { margin: 0; font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.p-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.p-actions .btn-go { text-decoration: none; }
.btn-ghost { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 18px; border-radius: 12px; border: 1px solid var(--border); background: transparent; color: var(--text); font-weight: 600; font-size: 15px; text-decoration: none; transition: border-color .15s, background .15s; }
@media (hover: hover) { .btn-ghost:hover { border-color: #3A4049; background: var(--surface); } }
.btn-link { border: 0; background: none; padding: 8px 4px; color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Admin */
.admin { max-width: 1040px; margin: 0 auto; padding: 28px 0 64px; }
.a-banner { margin: 0 0 20px; padding: 12px 16px; border-radius: 12px; border: 1px solid rgba(88, 199, 255, .4); background: rgba(88, 199, 255, .08); color: var(--muted-2); font-size: 15px; }
.a-banner strong { color: var(--accent); }
.a-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.a-head h1 { font-size: clamp(30px, 4vw, 44px); }
.a-head-actions { display: flex; gap: 10px; }
.a-tabs { display: flex; gap: 6px; margin: 28px 0 20px; padding: 4px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; overflow-x: auto; }
.a-tab { flex: 1; min-height: 46px; padding: 0 16px; border: 0; border-radius: 10px; background: transparent; color: var(--muted-2); font-weight: 600; font-size: 15px; white-space: nowrap; }
.a-tab[aria-selected="true"] { background: var(--accent); color: var(--ink); }
.a-help { margin: 0 0 18px; color: var(--muted-2); max-width: 760px; }
.a-form { display: grid; gap: 18px; }
.a-group { margin: 0; padding: 18px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); display: grid; gap: 14px; }
.a-group legend { padding: 0 8px; font-family: var(--head); font-weight: 700; font-size: 18px; }
.a-save { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; position: sticky; bottom: 0; padding: 12px 0; background: linear-gradient(transparent, var(--bg) 30%); }
.a-status { color: var(--accent); font-weight: 600; } .a-status.bad { color: #ffb4b4; }
.a-scope { max-width: 420px; margin-bottom: 16px; }
.a-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 14px; }
.a-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.a-table th, .a-table td { padding: 8px 12px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: middle; }
.a-table thead th { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: var(--surface); }
.a-table tbody th { font-weight: 500; white-space: nowrap; }
.a-table tr.a-sec th { background: var(--surface); color: var(--accent); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.a-table input { width: 100%; min-width: 96px; min-height: 42px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg); color: var(--text); font: 500 15px var(--body); }
.a-table input:focus-visible { outline: 2px solid var(--accent); border-color: var(--accent); }
.a-table td.off { color: #ffb4b4; } .a-table td.on { color: var(--muted-2); }
#b-new { margin-top: 14px; }
.a-buyer { margin-top: 20px; padding: 20px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.a-h { font-size: 22px; }
.a-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.a-check { display: flex; align-items: center; gap: 10px; min-height: 52px; font-weight: 500; }
.a-check input { width: 20px; height: 20px; accent-color: var(--accent); }
.a-foot { margin-top: 32px; }
@media (max-width: 640px) {
  .p-card { padding: 24px 20px; }
  .portal { padding: 5vh 0 8vh; }
  .a-grid { grid-template-columns: minmax(0, 1fr); }
  .a-tab { padding: 0 12px; font-size: 14px; }
  .a-table th, .a-table td { padding: 8px; }
}
@media (max-width: 640px) {
  #b-table thead { display: none; }
  #b-table, #b-table tbody { display: block; }
  #b-table tr { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 12px 14px; border-bottom: 1px solid var(--border); }
  #b-table th, #b-table td { border: 0; padding: 0; }
  #b-table td:nth-child(2) { grid-column: 1; color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
  #b-table td:nth-child(3), #b-table td:nth-child(4), #b-table td:nth-child(5) { grid-column: 1; display: inline; font-size: 14px; }
  #b-table td:last-child { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
}

/* v9 Vehicles tab */
.v-stats { margin: 0 0 18px; color: var(--muted-2); }
.v-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.v-file { position: relative; cursor: pointer; }
.v-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.v-make { min-width: 220px; }
.v-report { font-size: 15px; color: var(--muted-2); }
.v-report:empty { display: none; }
.v-report ul { margin: 8px 0 0; padding-left: 20px; }
.v-report .bad { color: #ffb4b4; }
.v-pieces { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0 16px; }
.v-pieces .a-check { min-height: 44px; }
.v-flag { color: #ffd59a; } .v-okay { color: var(--accent); }
#pane-vehicles code { color: var(--text); }
@media (max-width: 640px) { .v-row > * { flex: 1 1 100%; } }
