/* Lightning Fast Repair: the account button in the top bar and the account sheet. Same plates and type as the rest of the site. */
.ac-btn, .ac-row, .ac-empty, .ac-seg {
  --c: 9px; --fill: #15181C; --edge: #39404A;
  --cut: polygon(var(--c) 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%, 0 var(--c));
  position: relative; isolation: isolate;
  transition: --fill .22s, --edge .22s, color .2s, transform .18s var(--ease-out);
}
.ac-btn::before, .ac-row::before, .ac-empty::before, .ac-seg::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; clip-path: var(--cut);
  background:
    linear-gradient(135deg, transparent 50%, var(--edge) 50% calc(50% + 1.2px), transparent calc(50% + 1.2px)) top left / var(--c) var(--c) no-repeat,
    linear-gradient(135deg, transparent calc(50% - 1.2px), var(--edge) calc(50% - 1.2px) 50%, transparent 50%) bottom right / var(--c) var(--c) no-repeat,
    var(--fill);
  box-shadow: inset 0 0 0 1px var(--edge);
}

/* ---------- top bar ---------- */
.ac-btn { --c: 8px; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 0; background: none; color: var(--text); cursor: pointer; font-weight: 650; font-size: 14.5px; white-space: nowrap; --fill: rgb(21 24 28 / .6); --edge: #56606B; }
.ac-btn svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ac-btn:hover { --edge: var(--arc); --fill: rgb(143 233 255 / .08); color: var(--arc-core); }
.ac-btn:focus-visible { outline: 2px solid var(--arc); outline-offset: 3px; }
.ac-btn.in { padding: 0; min-width: 44px; justify-content: center; }
.ac-btn.in::before { display: none; }
.ac-btn.in .ac-av { box-shadow: 0 0 0 1px var(--line-2), 0 0 0 3px transparent; transition: box-shadow .25s; }
.ac-btn.in:hover .ac-av { box-shadow: 0 0 0 1px var(--arc), 0 0 14px rgb(143 233 255 / .45); }
.ac-dot { position: absolute; top: 0; right: -4px; min-width: 19px; height: 19px; padding: 0 5px; display: grid; place-items: center; border-radius: 10px; background: var(--arc); color: var(--ink); font: 800 11.5px/1 var(--font); font-stretch: 84%; font-variant-numeric: tabular-nums; box-shadow: 0 0 12px rgb(143 233 255 / .7); animation: ac-pop .5s var(--spring); }
@keyframes ac-pop { from { transform: scale(0); } }
.ac-av { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 50%; overflow: hidden; color: #fff; font-weight: 750; font-size: 16px; font-stretch: 110%; background: var(--control); }
.ac-av img { width: 100%; height: 100%; object-fit: cover; }
.ac-av.big { width: 64px; height: 64px; font-size: 27px; box-shadow: 0 0 0 1px var(--line-2), 0 0 22px rgb(143 233 255 / .16); }
/* until the bar has room to spare, the button is the icon alone */
@media (max-width: 1500px) {
  .ac-btn:not(.in) { padding: 0 11px; }
  .ac-btn:not(.in) span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
}
/* phones and narrow windows: the top row is full, so the account button sits at the end of the section strip */
@media (max-width: 720px) {
  #acctBtn { position: absolute; right: max(8px, calc(var(--pad) - 8px)); bottom: 3px; min-height: 40px; min-width: 40px; padding: 0 9px; z-index: 2; --fill: #101316; }
  #acctBtn.in { padding: 0; }
  #acctBtn.in .ac-av { width: 32px; height: 32px; font-size: 14px; }
  .top .nav { padding-right: 58px; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 96px), transparent calc(100% - 52px)); mask-image: linear-gradient(90deg, #000 calc(100% - 96px), transparent calc(100% - 52px)); }
}

/* ---------- log in, create account ---------- */
.ac-seg { --c: 9px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin: 0 0 20px; --fill: #0D0F12; --edge: #2F353D; }
.ac-seg button { min-height: 44px; border: 0; background: none; color: var(--mute); font-weight: 680; cursor: pointer; clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px); transition: background-color .2s, color .2s; }
.ac-seg button:hover { color: var(--text); }
.ac-seg button[aria-pressed="true"] { background: rgb(143 233 255 / .12); color: var(--arc-core); box-shadow: inset 0 -2px 0 var(--arc); }
.ac-seg button:focus-visible { outline: 2px solid var(--arc); outline-offset: -2px; }
.ac-kind label { grid-template-columns: auto 1fr; }
.ac-kind b { display: block; font-weight: 720; }
.ac-kind small { display: block; font-size: 14px; color: var(--mute); line-height: 1.45; margin-top: 2px; }
.ac-google { display: flex; justify-content: center; min-height: 44px; color-scheme: light; }
.ac-or { display: flex; align-items: center; gap: 12px; margin: 16px 0; color: var(--dim); font-size: 13px; font-stretch: 84%; letter-spacing: .08em; text-transform: uppercase; }
.ac-or::before, .ac-or::after { content: ''; flex: 1; height: 1px; background: var(--line-2); }
#acForm .sheet-foot .fine { flex: 1 1 220px; margin: 0; }

/* ---------- the signed-in sheet ---------- */
.ac-head { display: flex; align-items: center; gap: 16px; margin: -6px 0 22px; }
.ac-head .fine { display: block; overflow-wrap: anywhere; }
.ac-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }
.ac-tabs { margin: 0 0 18px; gap: 6px; }
.ac-tabs .cm-tab { min-height: 44px; padding: 0 14px; font-size: 15px; }
#acPanel:focus-visible { outline: 2px solid var(--arc); outline-offset: 4px; }
.ac-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ac-row { --c: 9px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; width: 100%; padding: 13px 15px; border: 0; background: none; color: var(--text); text-align: left; cursor: pointer; --fill: #171A1F; --edge: #2F353D; }
button.ac-row:hover { --edge: #5FB9D2; --fill: #142229; transform: translateX(3px); }
button.ac-row:focus-visible { outline: 2px solid var(--arc); outline-offset: 2px; }
.ac-row.flat { cursor: default; grid-template-columns: 1fr auto; }
.ac-row > svg { width: 22px; height: 22px; fill: none; stroke: var(--mute); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ac-row.new { --edge: rgb(143 233 255 / .55); }
.ac-row.new > svg { stroke: var(--arc); filter: drop-shadow(0 0 5px rgb(143 233 255 / .8)); }
.ac-row.new b::before { content: ''; display: inline-block; width: 7px; height: 7px; margin-right: 8px; vertical-align: 2px; border-radius: 50%; background: var(--arc); box-shadow: 0 0 9px var(--arc); }
.ac-main { min-width: 0; display: grid; gap: 2px; }
.ac-main b { font-weight: 680; line-height: 1.3; overflow-wrap: anywhere; }
.ac-main span { font-size: 14px; color: var(--mute); line-height: 1.4; overflow-wrap: anywhere; }
.ac-row time, .ac-row em { font-style: normal; font-size: 12.5px; font-stretch: 84%; letter-spacing: .04em; text-transform: uppercase; color: var(--dim); white-space: nowrap; }
.ac-row em.on { color: var(--go); }
.ac-row em.off { color: var(--stop); }
.ac-acts { display: grid; gap: 6px; justify-items: end; font-size: 14px; }
.ac-temp { font: 700 16px/1 ui-monospace, Menlo, monospace; color: var(--arc-core); user-select: all; }
.ac-empty { --c: 14px; display: grid; justify-items: start; gap: 10px; padding: 24px; --fill: #111418; --edge: #2F353D; }
.ac-empty h3 { margin: 0; font-size: 19px; }
.ac-empty p { margin: 0; color: var(--mute); max-width: 48ch; }
.ac-pic { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.ac-pic .fine { margin: 8px 0 0; }
.ac-colors { display: flex; flex-wrap: wrap; gap: 10px; }
.ac-colors label { position: relative; width: 38px; height: 38px; border-radius: 50%; background: var(--sw); cursor: pointer; box-shadow: 0 0 0 1px var(--line-2); transition: box-shadow .2s, transform .2s var(--spring); }
.ac-colors input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.ac-colors label:has(input:checked) { box-shadow: 0 0 0 2px var(--graphite), 0 0 0 4px var(--arc), 0 0 16px rgb(143 233 255 / .5); transform: scale(1.06); }
.ac-colors label:has(input:focus-visible) { outline: 2px solid var(--arc); outline-offset: 5px; }
#acPw, .ac-members { margin-top: 26px; padding-top: 6px; border-top: 1px solid var(--line); }
#acPw .sheet-foot, #acSet .sheet-foot { margin-top: 10px; }
.ac-members #acMemList { margin-top: 12px; }
.ac-out { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
.ac-del { color: var(--mute); font-size: 14.5px; }
@media (max-width: 520px) {
  .ac-row { grid-template-columns: auto 1fr; }
  .ac-row time, .ac-row em { grid-column: 2; }
  .ac-row.flat { grid-template-columns: 1fr; }
  .ac-acts { justify-items: start; grid-auto-flow: column; gap: 16px; }
}
@media (prefers-reduced-motion: reduce) { .ac-dot { animation: none; } button.ac-row:hover { transform: none; } }
/* 381 to 400px wide (most iPhones): the logo and Book a time were 3px too wide for one row and the bar wrapped to three */
@media (min-width: 381px) and (max-width: 400px) { .top-actions .btn-sm { padding: 0 13px; } }
.ac-fee { margin-top: 14px; }
.ac-fee-box .fine { margin: 0 0 12px; }
.ac-chips .textbtn { font-size: 14.5px; }

/* ---------- the rider builder ---------- */
.ac-design { display: inline-block; margin-top: 10px; font-size: 14.5px; }
.av-build { display: grid; grid-template-columns: minmax(220px, 300px) 1fr; gap: 22px; align-items: start; }
.av-stage { position: sticky; top: 0; display: grid; justify-items: center; gap: 12px; padding: 18px 14px 16px; overflow: hidden; clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
  background: radial-gradient(120% 70% at 50% 100%, rgb(143 233 255 / .16), transparent 60%), linear-gradient(180deg, #0B0E11, #0F1317); box-shadow: inset 0 0 0 1px var(--line-2); }
.av-stage::before { content: ''; position: absolute; inset: auto 0 0 0; height: 46%; pointer-events: none; opacity: .5;
  background: repeating-linear-gradient(90deg, rgb(143 233 255 / .13) 0 1px, transparent 1px 34px), repeating-linear-gradient(0deg, rgb(143 233 255 / .1) 0 1px, transparent 1px 22px);
  transform: perspective(300px) rotateX(58deg); transform-origin: bottom; -webkit-mask-image: linear-gradient(0deg, #000, transparent); mask-image: linear-gradient(0deg, #000, transparent); }
.av-fig { position: relative; z-index: 1; width: min(100%, 230px); filter: drop-shadow(0 0 18px rgb(143 233 255 / .22)); }
.av-fig svg { width: 100%; height: auto; }
.av-fig.pop { animation: av-pop .34s var(--spring); }
@keyframes av-pop { from { transform: scale(.94) translateY(4px); } }
.av-floor { position: relative; z-index: 0; width: 62%; height: 12px; margin-top: -22px; border-radius: 50%; background: radial-gradient(closest-side, rgb(143 233 255 / .55), transparent); filter: blur(3px); }
.av-stage .btn { position: relative; z-index: 1; }
.av-panel { min-width: 0; }
.av-cats { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; margin: 0 0 16px; padding-bottom: 2px; border-bottom: 1px solid var(--line); }
.av-cats::-webkit-scrollbar { display: none; }
.av-cats button { flex: none; position: relative; min-height: 44px; padding: 0 9px; border: 0; background: none; color: var(--mute); font-weight: 650; font-size: 15px; cursor: pointer; white-space: nowrap; }
.av-cats button::after { content: ''; position: absolute; left: 9px; right: 9px; bottom: -1px; height: 2px; background: var(--arc); box-shadow: 0 0 10px var(--arc); transform: scaleX(0); transition: transform .3s var(--ease-out); }
.av-cats button:hover { color: var(--text); }
.av-cats button[aria-selected="true"] { color: var(--arc-core); }
.av-cats button[aria-selected="true"]::after { transform: scaleX(1); }
.av-cats button:focus-visible, .av-tile:focus-visible, .av-sw button:focus-visible { outline: 2px solid var(--arc); outline-offset: 2px; }
.av-group { margin: 0 0 18px; }
.av-group .lbl { display: block; font-weight: 650; font-size: 15px; margin-bottom: 9px; }
.av-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.av-tile { display: grid; gap: 4px; justify-items: center; padding: 8px 6px 9px; border: 1px solid var(--line-2); border-radius: 3px; background: #14171B; color: var(--mute); font-size: 13px; font-weight: 600; line-height: 1.2; cursor: pointer; transition: border-color .2s, background-color .2s, color .2s, transform .18s var(--ease-out); }
.av-tile svg { width: 100%; height: auto; max-height: 86px; }
.av-tile:hover { border-color: #56606B; color: var(--text); transform: translateY(-2px); }
.av-tile[aria-pressed="true"] { border-color: var(--arc); background: #142229; color: var(--arc-core); box-shadow: 0 0 0 1px var(--arc), 0 0 16px rgb(143 233 255 / .18); }
.av-sw { display: flex; flex-wrap: wrap; gap: 9px; }
.av-sw button { width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: var(--sw); cursor: pointer; box-shadow: 0 0 0 1px #56606B; transition: box-shadow .2s, transform .2s var(--spring); }
.av-sw button:hover { transform: scale(1.08); }
.av-sw button[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--graphite), 0 0 0 4px var(--arc), 0 0 16px rgb(143 233 255 / .5); transform: scale(1.06); }
@media (max-width: 700px) {
  .av-build { grid-template-columns: 1fr; gap: 14px; }
  .av-stage { position: sticky; top: -30px; z-index: 3; grid-template-columns: auto auto; align-items: end; justify-content: center; gap: 4px 14px; padding: 10px 12px; }
  .av-fig { width: 128px; grid-row: 1 / 3; }
  .av-floor { display: none; }
  .av-tiles { grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); }
}

/* ---------- the garage ---------- */
.gr-list { gap: 10px; }
.gr-ride { padding: 14px 15px; border: 1px solid #2F353D; border-radius: 3px; background: #171A1F; }
.gr-top { display: flex; align-items: center; gap: 14px; }
.gr-top .ride-art { width: 72px; height: 48px; flex: none; color: var(--arc); }
.gr-mods { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; }
.gr-mods .fine { margin: 0; }
.gr-acts { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 12px; font-size: 14.5px; }
.gr-edit { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.gr-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px 14px; }
.gr-checks label { display: flex; align-items: flex-start; gap: 9px; font-size: 15px; font-weight: 420; cursor: pointer; margin: 0; }
.gr-checks input { width: 18px; height: 18px; min-height: 0; flex: none; margin: 3px 0 0; padding: 0; accent-color: var(--arc); }
.gr-add { margin-top: 14px; }
@media (prefers-reduced-motion: reduce) { .av-fig.pop { animation: none; } .av-tile:hover, .av-sw button:hover { transform: none; } }

/* ---------- rider builder, second pass: sliders, taller tiles, more groups ---------- */
.av-fig { width: min(100%, 250px); }
.av-tiles.two { grid-template-columns: repeat(2, minmax(0, 150px)); }
.av-tile svg { max-height: 118px; }
.av-sliders { display: grid; gap: 10px; }
.av-sliders label { display: grid; grid-template-columns: 92px 1fr; align-items: center; gap: 12px; font-size: 15px; font-weight: 620; }
.av-sliders input[type="range"] { width: 100%; height: 30px; margin: 0; background: none; accent-color: var(--arc); cursor: pointer; }
.av-sw button.none { background: repeating-linear-gradient(135deg, #2A3038 0 5px, #15181C 5px 10px); }
.av-num { display: flex; align-items: center; gap: 12px; }
.av-num label { font-weight: 650; font-size: 15px; }
.av-num input { width: 96px; min-height: 46px; border: 1px solid var(--line-2); border-radius: 2px; background: rgb(7 9 11 / .6); padding: 8px 12px; font-size: 16px; color: var(--text); }
.av-num input:focus { outline: none; border-color: var(--arc); box-shadow: 0 0 0 3px rgb(143 233 255 / .14); }
#avOpts > .fine { margin: 0 0 14px; }
@media (max-width: 700px) { .av-fig { width: 104px; } .av-stage { top: -34px; } }
.av-cats { flex-wrap: wrap; overflow: visible; row-gap: 0; }

/* ---------- rider builder: pick a body and a base character ---------- */
.av-gender { display: grid; grid-template-columns: repeat(2, minmax(0, 220px)); gap: 12px; justify-content: center; margin: 6px 0 4px; }
.av-pick { display: grid; justify-items: center; gap: 6px; padding: 12px 10px 14px; border: 1px solid var(--line-2); border-radius: 3px; background: radial-gradient(120% 70% at 50% 100%, rgb(143 233 255 / .12), transparent 60%), #111418; color: var(--text); font-weight: 720; font-size: 17px; cursor: pointer; transition: border-color .2s, box-shadow .2s, transform .18s var(--ease-out); }
.av-pick svg { width: 100%; max-width: 120px; height: auto; }
.av-pick:hover { border-color: #56606B; transform: translateY(-2px); }
.av-pick[aria-pressed="true"] { border-color: var(--arc); box-shadow: 0 0 0 1px var(--arc), 0 0 22px rgb(143 233 255 / .2); color: var(--arc-core); }
.av-pick:focus-visible { outline: 2px solid var(--arc); outline-offset: 2px; }
.av-start h3 { margin: 22px 0 12px; }
.av-bases { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
.av-base svg { max-height: 210px; }
.av-base span { font-size: 14px; color: var(--text); }
.av-stage-acts { position: relative; z-index: 1; display: grid; justify-items: center; gap: 8px; }
.av-stage-acts .textbtn { font-size: 14px; }
@media (max-width: 700px) { .av-gender { grid-template-columns: 1fr 1fr; } .av-pick svg { max-width: 84px; } .av-bases { grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); } .av-base svg { max-height: 170px; } }
.av-sliders label { grid-template-columns: 124px 1fr; }
