/* Dealer Access intake · step 03 · Add your team (team.js). Site tokens only, so day and night both work. */
.team-opt { margin-left: auto; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); font-family: var(--font-mono, ui-monospace, monospace); }
.team-step .stepnote { margin-bottom: 24px; }
.team-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 6px; border-radius: 18px; border: 1px solid var(--line-strong); background: rgba(var(--bg-rgb), .5); }
.team-tabs button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 12px; border: 0; border-radius: 13px; background: transparent; color: var(--text-2); font: inherit; font-size: 14.5px; font-weight: 500; cursor: pointer; transition: background-color .2s, color .2s; }
.team-tabs button svg { flex: none; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.team-tabs button:hover { color: var(--text); }
.team-tabs button[aria-selected="true"] { background: var(--blue-soft); color: var(--text); box-shadow: inset 0 0 0 1px var(--blue-line); }
.team-tabs button[aria-selected="true"] svg { color: var(--blue-text); }
.team-panel { padding: 20px 2px 4px; }
.team-lead { margin: 0 0 16px; font-size: 15px; line-height: 1.55; color: var(--text-2); }
.team-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.team-file { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line-strong); background: rgba(var(--bg-rgb), .62); color: var(--text); font-size: 15px; font-weight: 500; cursor: pointer; transition: border-color .2s; }
.team-file:hover { border-color: var(--blue-line); }
.team-actions:has(input:focus-visible) .team-file { outline: 2px solid var(--blue); outline-offset: 3px; }
.team-file svg { width: 18px; height: 18px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.team-link { padding: 0; border: 0; background: none; font: inherit; font-size: 14.5px; color: var(--blue-text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--blue-line); cursor: pointer; }
.team-msg { margin: 12px 0 0; font-size: 14px; color: var(--text-2); }
.team-msg:empty { display: none; }
.team-shot { display: flex; gap: 16px; align-items: flex-start; margin-top: 16px; padding: 12px; border-radius: 16px; border: 1px solid var(--line-strong); background: rgba(var(--bg-rgb), .5); }
.team-shot[hidden] { display: none; }
.team-shot img { flex: none; width: 96px; height: 96px; object-fit: cover; object-position: top; border-radius: 10px; border: 1px solid var(--line); }
.team-shot p { margin: 0 0 6px; font-size: 14px; line-height: 1.5; }
.team-shot-name { font-weight: 500; color: var(--text); word-break: break-all; }
.team-shot-read { color: var(--text-2); }
.team-shot-read i { display: inline-block; width: 7px; height: 7px; margin: 0 8px 1px 0; border-radius: 50%; background: var(--blue); }

.team-list { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 18px; }
.team-list-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin-bottom: 10px; font-size: 14px; }
.team-list-top b { font-weight: 500; color: var(--text); }
.team-list-top b:empty { display: none; }
.team-list-top span { color: var(--text-2); }
.team-empty { margin: 4px 0 12px; font-size: 14.5px; color: var(--text-3); }
.team-head, .team-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) minmax(0, .95fr) 44px; gap: 10px; align-items: start; }
.team-head { padding: 0 0 6px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); font-family: var(--font-mono, ui-monospace, monospace); }
.team-row { padding: 6px 0; }
.team-cell { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.team-cell input, .team-select select {
  width: 100%; height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-strong); background: rgba(var(--bg-rgb), .62);
  font: inherit; font-size: 16px; color: var(--text); -webkit-appearance: none; appearance: none; transition: border-color .2s; }
.team-cell input::placeholder { color: var(--text-3); }
.team-cell input:focus, .team-select select:focus { outline: none; border-color: var(--accent); }
.team-select { position: relative; display: block; }
.team-select::after { content: ""; position: absolute; right: 16px; top: 50%; width: 7px; height: 7px; margin-top: -6px; border-right: 1.6px solid var(--text-2); border-bottom: 1.6px solid var(--text-2); transform: rotate(45deg); pointer-events: none; }
.team-select select { padding-right: 38px; cursor: pointer; }
.team-select select option { color: #111; background: #fff; }
.team-cell em { display: none; font-style: normal; font-size: 12.5px; color: var(--danger); }
.team-cell.bad input, .team-cell.bad select { border-color: rgba(255, 92, 108, .8); }
.team-cell.bad em { display: block; }
.team-remove { width: 44px; height: 48px; display: grid; place-items: center; border: 1px solid transparent; border-radius: 12px; background: transparent; color: var(--text-3); cursor: pointer; }
.team-remove:hover { color: var(--danger); border-color: var(--line-strong); }
.team-remove svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.team-add { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 8px; padding: 0 16px 0 12px; border-radius: 999px; border: 1px dashed var(--blue-line); background: transparent; color: var(--blue-text); font: inherit; font-size: 14.5px; font-weight: 500; cursor: pointer; }
.team-add svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.team-add:hover { background: var(--blue-soft); }

.team-email { margin-top: 28px; padding: 20px 22px; border-radius: 20px; border: 1px solid var(--line-strong); background: rgba(var(--bg-rgb), .5); }
.team-q { margin: 0 0 14px; font-size: 16px; line-height: 1.5; color: var(--text); font-weight: 500; }
.team-yn { display: flex; gap: 10px; }
.team-yn label { position: relative; cursor: pointer; }
.team-yn input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.team-yn span { display: inline-flex; align-items: center; justify-content: center; min-width: 88px; min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--text-2); font-size: 15px; font-weight: 500; transition: border-color .2s, color .2s, background-color .2s; }
.team-yn input:checked + span { border-color: var(--accent); color: var(--text); background: rgba(255, 154, 39, .1); }
.team-yn input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 3px; }
.team-answer { margin-top: 16px; }
.team-answer[hidden] { display: none; }
.team-answer > p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--text-2); }
.team-coming { display: inline-block; margin: 0 10px 6px 0; padding: 4px 9px; border-radius: 999px; border: 1px solid var(--blue-line); color: var(--blue-text); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; vertical-align: 2px; }
.team-coming[hidden] { display: none; }
.team-preview-head { margin: 14px 0 8px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); font-family: var(--font-mono, ui-monospace, monospace); }
.team-preview { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.team-preview li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 10px 14px; border-radius: 12px; background: var(--blue-soft); border: 1px solid var(--blue-line); }
.team-preview b { font-weight: 500; color: var(--text); word-break: break-all; }
.team-preview span { font-size: 13.5px; color: var(--text-2); word-break: break-all; }
.team-preview-empty { margin: 12px 0 0; font-size: 14px; color: var(--text-3); }

@media (max-width: 760px) {
  .team-opt { display: none; }
  .team-tabs { grid-template-columns: 1fr; }
  .team-tabs button { justify-content: flex-start; padding: 0 16px; }
  .team-head { display: none; }
  .team-row { grid-template-columns: minmax(0, 1fr) 44px; grid-template-areas: "n x" "e e" "r r"; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .team-row [data-cell="name"] { grid-area: n; }
  .team-row [data-cell="email"] { grid-area: e; }
  .team-row [data-cell="role"] { grid-area: r; }
  .team-row .team-remove { grid-area: x; }
  .team-email { padding: 18px 16px; }
  .team-yn label { flex: 1; display: flex; }
  .team-yn span { min-width: 0; flex: 1; }
}
