/* App-level components that are not part of the captured utility sheet. */

:root {
  --tw-radius: 12px;
}

/* ---------- toast ---------- */
#tw-toasts {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 4000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  pointer-events: none;
}
.tw-toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: min(92vw, 460px);
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  background: #18181b;
  color: #fafafa;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
  animation: tw-toast-in 0.22s ease-out;
}
.tw-toast[data-kind='error'] { background: #dc2626; color: #fff; }
.tw-toast[data-kind='success'] { background: #16a34a; color: #fff; }
.tw-toast a { text-decoration: underline; }
@keyframes tw-toast-in {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

/* ---------- modal ---------- */
.tw-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 3500;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: tw-fade 0.16s ease-out;
}
@keyframes tw-fade { from { opacity: 0; } to { opacity: 1; } }
.tw-modal {
  width: 100%;
  max-width: 440px;
  border-radius: 16px;
  background: #fff;
  color: #111;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.4);
  padding: 24px;
  animation: tw-modal-in 0.18s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
.dark .tw-modal { background: #171717; color: #fafafa; border-color: #2e2e2e; }
@keyframes tw-modal-in {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
.tw-modal h2 { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.tw-modal p.sub { margin-top: 6px; font-size: 13px; color: #71717a; }
.dark .tw-modal p.sub { color: #a1a1aa; }
.tw-modal .row { margin-top: 18px; }
.tw-field {
  width: 100%;
  height: 46px;
  border-radius: 10px;
  border: 1px solid #d4d4d8;
  background: transparent;
  padding: 0 14px;
  font-size: 14px;
  color: inherit;
  outline: none;
}
.dark .tw-field { border-color: #3f3f46; }
.tw-field:focus { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18); }
.tw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s, opacity 0.15s;
}
.tw-btn-primary { background: #111; color: #fff; }
.dark .tw-btn-primary { background: #fafafa; color: #111; }
.tw-btn-primary:hover { opacity: 0.88; }
.tw-btn-ghost { background: transparent; border-color: #d4d4d8; color: inherit; }
.dark .tw-btn-ghost { border-color: #3f3f46; }
.tw-btn-ghost:hover { background: rgba(0, 0, 0, 0.04); }
.dark .tw-btn-ghost:hover { background: rgba(255, 255, 255, 0.06); }
.tw-btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.tw-code {
  display: flex;
  gap: 8px;
  justify-content: space-between;
  margin-top: 18px;
}
.tw-code input {
  width: 100%;
  height: 54px;
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.18em;
  border-radius: 10px;
  border: 1px solid #d4d4d8;
  background: transparent;
  color: inherit;
  outline: none;
}
.dark .tw-code input { border-color: #3f3f46; }
.tw-modal .hint {
  margin-top: 10px;
  font-size: 12px;
  color: #71717a;
  line-height: 1.5;
}
.dark .tw-modal .hint { color: #a1a1aa; }
.tw-modal .hint code {
  background: rgba(0, 0, 0, 0.06);
  padding: 2px 6px;
  border-radius: 6px;
  font-weight: 700;
  letter-spacing: 0.1em;
}
.dark .tw-modal .hint code { background: rgba(255, 255, 255, 0.1); }

/* ---------- nav menus ---------- */
.tw-menu {
  position: absolute;
  z-index: 2500;
  min-width: 220px;
  padding: 6px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
  animation: tw-fade 0.12s ease-out;
}
.dark .tw-menu { background: #18181b; border-color: #2e2e2e; box-shadow: 0 18px 48px rgba(0, 0, 0, 0.6); }
.tw-menu a, .tw-menu button {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13px;
  text-align: left;
  color: inherit;
  cursor: pointer;
}
.tw-menu a:hover, .tw-menu button:hover { background: rgba(0, 0, 0, 0.05); }
.dark .tw-menu a:hover, .dark .tw-menu button:hover { background: rgba(255, 255, 255, 0.08); }
.tw-menu .tw-menu-label {
  padding: 6px 10px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #71717a;
}
.tw-avatar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 10px 0 4px;
  border-radius: 999px;
  border: 1px solid #e4e4e7;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
}
.dark .tw-avatar { border-color: #3f3f46; }
.tw-avatar .bubble {
  display: flex;
  height: 28px;
  width: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #18181b;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}
.dark .tw-avatar .bubble { background: #fafafa; color: #111; }

/* ---------- car mount ---------- */
[data-car-mount] { position: relative; width: 100%; height: 100%; }
[data-car-mount] canvas { width: 100% !important; height: 100% !important; }
.tw-car-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #71717a;
}

/* ---------- misc ---------- */
body { min-height: 100vh; }

/* ---------- utility supplement (classes the captured sheet does not contain) ---------- */
.ms-auto { margin-inline-start: auto; }
.me-auto { margin-inline-end: auto; }
.plate-card { aspect-ratio: 420 / 180; }
.stack-2 { display: grid; gap: 8px; }

/* ---------- utility supplement: classes used by our views that the captured
   Tailwind build never emitted (it only ships classes the original site used) ---------- */
.pl-3 { padding-left: 0.75rem; }
.pr-9 { padding-right: 2.25rem; }
.right-2\.5 { right: 0.625rem; }
.min-w-9 { min-width: 2.25rem; }
.w-px { width: 1px; }
.mx-1 { margin-inline: 0.25rem; }
.max-w-\[1100px\] { max-width: 1100px; }
.max-w-\[1200px\] { max-width: 1200px; }
.accent-blue-600 { accent-color: #2563eb; }
.blur-0 { filter: blur(0); }
.hover\:bg-neutral-200\/70:hover { background-color: rgb(229 229 229 / 0.7); }
.dark .dark\:bg-blue-600 { background-color: #2563eb; }
.dark .dark\:bg-neutral-900\/95 { background-color: rgb(23 23 23 / 0.95); }
@media (min-width: 640px) {
  .sm\:w-\[200px\] { width: 200px; }
}
@media (min-width: 768px) {
  .md\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
