/* Dealer sign-in (new_site_v3 dealer-login.html, generated from v3 style.css) and the dealer account
   (structure of the USMRC representative cabinet in TEK's tokens: --tek, --ink, --bg, --line, --display, --body). */

/* --- v3 .dlog --- */
.dlog { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.dlog__form { display: grid; gap: 18px; max-width: 560px; }
.dlog__form h2, .dlog__side h2 { font-size: clamp(30px, 2.6vw, 40px); line-height: 1; }
.dlog__lead { margin-top: -6px; color: var(--ink-2); }
.dlog__field { display: grid; gap: 8px; font-size: 14px; font-weight: 600; }
.dlog__field input { height: 52px; padding: 0 16px; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: var(--white); font: 400 16px/1 var(--body); color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.dlog__field input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(17, 18, 20, .08); }
.dlog__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; font-size: 14px; }
.dlog__row a { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.dlog__row a:hover { color: var(--tek); }
.dlog__check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.dlog__check input { width: 18px; height: 18px; accent-color: var(--ink); }
.dlog__submit { justify-self: start; min-width: 200px; }
.dlog__status { padding: 12px 16px; border-radius: var(--r-sm); background: var(--bg); font-size: 14px; color: var(--ink-2); }
.dlog__side { display: grid; gap: 16px; justify-items: start; padding: clamp(24px, 3vw, 40px); border-radius: var(--r); background: var(--bg); }
.dlog__badge { width: 72px; height: 72px; }
.dlog__side p { color: var(--ink-2); }
.dlog__perks { display: grid; gap: 8px; margin: 6px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); list-style: none; font-size: 15px; }
.dlog__perks li { position: relative; padding-left: 18px; }
.dlog__perks li::before { content: ""; position: absolute; left: 0; top: .6em; width: 8px; height: 8px; border-radius: 2px; background: var(--tek); }
@media (max-width: 860px) {
  .dlog { grid-template-columns: 1fr; }
}
.dlog__alt { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.dlog__alt:hover { color: var(--tek); }
/* status line: v3 had one neutral message; WordPress needs error and success tones */
.dlog__status.is-error { background: #FCEDEA; color: #8A2414; }
.dlog__status.is-ok { background: #EAF6EE; color: #0F5B2A; }
.dlog .cf-turnstile { min-height: 65px; }

/* --- account --- */
/* The page title row is hidden on the sign-in and account pages, so the first section clears the fixed header itself. */
.tek-dl-login, .dac-wrap { padding-top: calc(var(--header-h, 96px) + clamp(32px, 4vw, 56px)); }
.dac { border: 1px solid var(--line); border-radius: var(--r); background: var(--white); }
.dac__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 16px 24px; border-bottom: 1px solid var(--line); background: var(--bg); border-radius: var(--r) var(--r) 0 0; }
.dac__name { margin: 0; font-size: 26px; line-height: 1; }
.dac__avatar { flex: 0 0 auto; width: 44px; height: 44px; margin-right: -8px; border-radius: 50%; object-fit: cover; }
.dac__avatar--logo { border-radius: 8px; object-fit: contain; background: var(--white); }
.dac__avatar--mark { display: block; border-radius: 8px; overflow: hidden; }
.dac__avatar--mark svg { display: block; width: 100%; height: 100%; }
.dac__loc { display: flex; align-items: center; gap: 10px; }
.dac__loc label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.dac__loc select { min-width: 260px; }
.dac__view { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; text-decoration: none; }
.dac__view svg { width: 16px; height: 16px; transition: transform .2s; }
.dac__view:hover svg { transform: translate(2px, -2px); }
.dac__state { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: .04em; white-space: nowrap; }
.dac__state::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.dac__state.is-live { background: linear-gradient(135deg, #F4F5F7, #C9CDD3); color: var(--ink); }
.dac__state.is-live::before { background: #1C8C4A; }
.dac__state.is-incomplete, .dac__state.is-hidden { background: #FFF4D6; color: #6B4A00; }
.dac__state.is-stopped { background: #FCEDEA; color: #8A2414; }

.dac__body { display: grid; grid-template-columns: 240px minmax(0, 1fr); }
.dac__nav { display: flex; flex-direction: column; gap: 2px; padding: 16px 12px; border-right: 1px solid var(--line); }
.dac__nav a { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: var(--r-sm); color: var(--ink-2); font-size: 15px; font-weight: 500; }
.dac__nav a:hover { background: var(--bg); color: var(--ink); }
.dac__nav svg { flex: 0 0 auto; width: 18px; height: 18px; }
.dac__nav a[aria-current="page"] { background: var(--ink); color: var(--white); }
.dac__nav .dac__out { margin-top: 12px; padding-top: 14px; border-top: 1px solid var(--line); border-radius: 0; }
.dac__main { min-width: 0; padding: clamp(20px, 3vw, 36px); }

.dac-h { margin: 0; font-size: clamp(32px, 3vw, 44px); line-height: .95; }
.dac-lead { margin: 10px 0 24px; color: var(--ink-2); }
.dac-card { margin: 0 0 16px; padding: clamp(16px, 2vw, 24px); border: 1px solid var(--line); border-radius: var(--r); background: var(--white); }
.dac-card h3 { margin: 0 0 14px; font: 600 17px/1.3 var(--body); text-transform: none; letter-spacing: 0; color: var(--ink); }
.dac-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.dac-cols > .dac-card { margin: 0; }
.dac-cols + .dac-actions, .dac-cols { margin-bottom: 16px; }
.dac-narrow { max-width: 480px; }

.dac-field { display: grid; gap: 6px; margin: 0 0 14px; }
.dac-label { font-size: 14px; font-weight: 600; color: var(--ink); }
.dac-input { width: 100%; min-height: 48px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: var(--white); font: 400 16px/1.4 var(--body); color: var(--ink); }
.dac-input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(17, 18, 20, .08); }
select.dac-input { -webkit-appearance: none; appearance: none; padding-right: 40px; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111214' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 16px 16px; }
.dac-text { min-height: 220px; resize: vertical; }
.dac-ro { padding: 12px 14px; border-radius: var(--r-sm); background: var(--bg); font-weight: 600; }
.dac-hint { margin: 4px 0 0; font-size: 13px; color: var(--ink-2); }
.dac-row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.dac-row3 { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 2fr) minmax(0, 1fr); gap: 0 16px; }
.dac-inline { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.dac-inline .dac-input { width: auto; min-width: 220px; flex: 1 1 220px; }
.dac-check { display: inline-flex; align-items: center; gap: 10px; min-height: 36px; font-size: 15px; cursor: pointer; }
.dac-check input { width: 18px; height: 18px; accent-color: var(--ink); }
.dac-ticks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 20px; }
.dac-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }

.dac-msg { margin: 0 0 20px; padding: 12px 16px; border-radius: var(--r-sm); font-size: 15px; }
.dac-msg p { margin: 0; }
.dac-msg ul { margin: 6px 0 0 1.2em; }
.dac-msg.is-ok { background: #EAF6EE; color: #0F5B2A; }
.dac-msg.is-error { background: #FCEDEA; color: #8A2414; }
.dac-msg.is-warn { background: #FFF4D6; color: #6B4A00; }

/* The live switch: the one thing on the overview that matters most. */
.dac-switch { display: flex; align-items: center; gap: 20px; margin: 0 0 16px; padding: 20px 24px; border: 1px solid var(--line); border-left: 4px solid #C9CDD3; border-radius: var(--r); background: var(--white); }
.dac-switch.is-on { border-left-color: var(--tek); background: linear-gradient(90deg, rgba(211, 59, 0, .05), transparent 60%); }
.dac-switch__text { display: grid; gap: 4px; }
.dac-switch__text b { font: 400 26px/1 var(--display); text-transform: uppercase; color: var(--ink); }
.dac-switch__text span { color: var(--ink-2); }
.dac-switch__btn { display: inline-flex; align-items: center; gap: 12px; margin-left: auto; padding: 8px; border: 0; background: none; font: 600 14px var(--body); color: var(--ink); white-space: nowrap; flex: none; cursor: pointer; }
.dac-switch__btn:disabled { cursor: not-allowed; opacity: .5; }
.dac-switch__track { position: relative; width: 56px; height: 32px; border-radius: 999px; background: #C9CDD3; transition: background .2s; }
.dac-switch__knob { position: absolute; top: 4px; left: 4px; width: 24px; height: 24px; border-radius: 50%; background: var(--white); box-shadow: 0 2px 6px rgba(0, 0, 0, .25); transition: transform .2s var(--ease); }
.dac-switch__btn[aria-checked="true"] .dac-switch__track { background: var(--tek); }
.dac-switch__btn[aria-checked="true"] .dac-switch__knob { transform: translateX(24px); }
.dac-switch__btn:focus-visible { outline: 3px solid var(--tek); outline-offset: 2px; border-radius: 999px; }

.dac-chk { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.dac-chk li { display: flex; align-items: center; gap: 10px; }
.dac-chk i { flex: 0 0 22px; width: 22px; height: 22px; border-radius: 50%; }
.dac-chk .is-done i { background: #1C8C4A url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") no-repeat center / 14px; }
.dac-chk .is-todo i { border: 2px solid var(--tek); }
.dac-chk a { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.dac-chk a:hover { color: var(--tek); }

.dac-locs { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.dac-locs li { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--r-sm); }
.dac-locs li.is-current { border-color: var(--ink); }
.dac-locs a { display: grid; gap: 2px; color: var(--ink); }
.dac-locs a span { font-size: 13px; color: var(--ink-2); }
.dac-locs .dac__state { margin-left: auto; }

.dac-tag { display: grid; gap: 6px; }
.dac-tag input[hidden] { display: none; }
.dac-img { display: grid; gap: 10px; justify-items: start; }
.dac-img .dac-label + .dac-hint { margin: -6px 0 0; }
.dac-img__frame { display: grid; place-items: center; width: 100%; aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--r-sm); background: var(--bg); }
.dac-img__frame img { width: 100%; height: 100%; object-fit: cover; }
.dac-img__empty { font-size: 14px; color: var(--ink-2); }
/* logo previewed as it sits on the page: a white plate over the dark hero */
.dac-img--logo .dac-img__frame { aspect-ratio: 16 / 9; background: #1A1C20; }
.dac-img--logo .dac-img__frame img { width: auto; height: 82px; max-width: 80%; padding: 12px 18px; object-fit: contain; border-radius: var(--r); background: var(--white); }
/* person previewed in the circle the page uses */
.dac-img--person .dac-img__frame { width: 160px; height: 160px; aspect-ratio: 1; border: 4px solid #C9CDD3; border-radius: 50%; }
.dac-img--person .dac-img__frame img { object-position: 50% 15%; }
.dac-file { position: relative; overflow: hidden; cursor: pointer; }
.dac-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dac-file:focus-within { outline: 3px solid var(--tek); outline-offset: 2px; }

.dac-yt { display: none; margin: 0 0 14px; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--r-sm); background: var(--bg); }
.dac-yt[data-id], .dac-yt.has-preview { display: block; }
.dac-yt img { width: 100%; height: 100%; object-fit: cover; }

.dac-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin: 0 0 16px; padding: 0; list-style: none; }
.dac-photo { display: grid; gap: 8px; padding: 10px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--white); }
.dac-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 2px; }
.dac-photo__tools { display: flex; align-items: center; gap: 6px; }
.dac-photo__tools .dac-check { margin-left: auto; font-size: 14px; }
.dac-move { width: 40px; height: 40px; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: var(--white); font-size: 16px; color: var(--ink); cursor: pointer; }
.dac-move:hover { border-color: var(--ink); }
.dac-empty-line { margin: 0 0 16px; padding: 16px; border: 1px dashed #C9CDD3; border-radius: var(--r); background: var(--bg); color: var(--ink-2); }
.dac-empty, .dac-note { max-width: 640px; }
.dac-empty h2 { font-size: clamp(30px, 3vw, 40px); }

@media (max-width: 960px) {
  .dac__body { grid-template-columns: 1fr; }
  /* The menu becomes a strip that scrolls sideways and stays under the site header. */
  .dac__nav { position: sticky; top: var(--header-h, 76px); z-index: 4; flex-direction: row; gap: 4px; padding: 8px; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); background: var(--white); scrollbar-width: none; }
  .dac__nav::-webkit-scrollbar { display: none; }
  .dac__nav a { flex: none; white-space: nowrap; }
  .dac__nav .dac__out { margin: 0 0 0 auto; padding-top: 10px; border-top: 0; }
  .dac-cols { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .dac__bar { padding: 14px 16px; }
  .dac__loc { flex-wrap: wrap; width: 100%; }
  .dac__loc select { min-width: 0; width: 100%; }
  .dac__view { margin-left: 0; }
  .dac__main { padding: 18px 16px; }
  .dac-row2, .dac-row3, .dac-ticks { grid-template-columns: 1fr; }
  .dac-switch { flex-wrap: wrap; padding: 16px; }
  .dac-switch__btn { margin-left: 0; }
  .dac-locs li { flex-wrap: wrap; }
  .dac-locs a { flex: 1 1 100%; }
  .dac-locs .dac__state { margin-left: 0; }
  .dac-photos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dac-photo__tools .dac-check span { display: none; }
  .dac-actions .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .dac-switch__knob, .dac-switch__track { transition: none; }
}
/* The theme colours links inside page content; v3's line button is ink, white on hover. */
.dlog a.btn--line, .dac a.btn--line { color: var(--ink); }
.dlog a.btn--line:hover, .dac a.btn--line:hover { color: var(--white); }
.dlog a.dlog__alt, .dlog .dlog__row a { color: var(--ink); }
.dlog a.dlog__alt:hover, .dlog .dlog__row a:hover { color: var(--tek); }
/* The theme colours every link in page content orange; the account's own links keep their colours. */
.dac a.dac__view { color: var(--ink); }
.dac a.dac__view:hover { color: var(--white); }
.dac .dac-chk a, .dac .dac-locs a { color: var(--ink); }
.dac .dac-chk a:hover { color: var(--tek); }
.dac .dac__nav a { color: var(--ink-2); }
.dac .dac__nav a:hover { color: var(--ink); }
.dac .dac__nav a[aria-current="page"] { color: var(--white); }
.dac__loc .dac-input { min-height: 40px; width: auto; min-width: 260px; }
/* Portfolio tiles in two narrow columns on phones: the tools wrap under the arrows. */
.dac-photo { min-width: 0; }
.dac-photo .dac-input { min-width: 0; }
@media (max-width: 600px) {
  .dac-photo__tools { flex-wrap: wrap; }
  .dac-photo__tools .dac-check { width: 100%; margin-left: 0; }
}

/* Representative photo: the face is placed in a circle (USMRC cropper, one round step). */
.dac-crop { display: grid; gap: 12px; }
.dac-crop__stage { position: relative; width: 100%; aspect-ratio: 340 / 260; overflow: hidden; border-radius: var(--r-sm); background: var(--ink); touch-action: none; cursor: grab; }
.dac-crop__stage:active { cursor: grabbing; }
.dac-crop__stage img { position: absolute; left: 50%; top: 50%; max-width: none; height: auto; transform: translate(-50%, -50%); user-select: none; -webkit-user-drag: none; }
.dac-crop__stage img:not([src]) { display: none; }
.dac-crop__empty { position: absolute; inset: 0; display: grid; place-items: center; font-size: 14px; color: #C9CDD3; }
.dac-crop__frame { position: absolute; left: 50%; top: 50%; width: 58%; aspect-ratio: 1; transform: translate(-50%, -50%); border: 2px solid var(--white); border-radius: 50%; box-shadow: 0 0 0 9999px rgba(17, 18, 20, .6); pointer-events: none; }
.dac-crop__stage:not(.is-ready) .dac-crop__frame { display: none; }
.dac-crop__zoom { display: flex; align-items: center; gap: 10px; font-size: 18px; color: var(--ink-2); }
.dac-crop__zoom[hidden], .dac-crop .dac-hint[hidden] { display: none; }
.dac-crop__zoom input { flex: 1; min-width: 0; accent-color: var(--tek); }
.dac .dac-crop__reset { min-height: 0; padding: 8px 14px; font-size: 13px; }
.dac-crop__prev { display: grid; gap: 8px; margin-top: 6px; padding-top: 16px; border-top: 1px solid var(--line); }
.dac-crop__person { display: flex; align-items: center; gap: 14px; }
.dac-crop__pic { flex: 0 0 72px; width: 72px; height: 72px; overflow: hidden; border: 3px solid #C9CDD3; border-radius: 50%; background: #E9EBEE; }
.dac-crop__pic img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
.dac-crop__person b { display: block; font-size: 17px; color: var(--ink); }
.dac-crop__person small { display: block; margin-top: 2px; font-size: 14px; color: var(--ink-2); }

/* --- password fields: show/hide and live rules (assets/js/password.js) --- */
.pw-wrap { position: relative; display: block; }
.pw-wrap input { width: 100%; padding-right: 48px; }
.pw-eye { position: absolute; top: 50%; right: 6px; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 4px; background: none; color: var(--ink-2); cursor: pointer; transform: translateY(-50%); }
.pw-eye:hover { color: var(--ink); }
.pw-eye:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.pw-eye svg { width: 20px; height: 20px; }
.pw-rules { display: grid; gap: 4px; margin: 8px 0 0; padding: 0; list-style: none; font-size: 14px; line-height: 1.4; color: var(--ink-2); }
.pw-rules li { display: flex; align-items: center; gap: 8px; }
.pw-rules li::before { content: ""; flex: 0 0 auto; width: 8px; height: 8px; border-radius: 50%; background: #C3C7CD; }
.pw-rules li.is-ok { color: #0F5B2A; }
.pw-rules li.is-ok::before { background: #0F7A3E; }
.pw-match { display: block; margin-top: 8px; font-size: 14px; }
.pw-match.is-ok { color: #0F5B2A; }
.pw-match.is-bad { color: #B3261E; }
