/* ============================================================================
   K-Sync — utility compatibility layer
   ----------------------------------------------------------------------------
   Tailwind's CDN is gone. The handful of utility classes that legacy markup
   (and a few inline scripts) still toggle are implemented here, with the same
   names and the same effect. Nothing in this file is a new design decision.
   ========================================================================== */

/* ---------- Display / layout ---------- */
.flex        { display: flex; }
.inline-flex { display: inline-flex; }
.inline      { display: inline; }
.block       { display: block; }
.grid        { display: grid; }
.hidden      { display: none; }
.relative    { position: relative; }
.absolute    { position: absolute; }
.fixed       { position: fixed; }
.sticky      { position: sticky; }
.inset-0     { inset: 0; }
.items-center   { align-items: center; }
.items-start    { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between{ justify-content: space-between; }
.flex-wrap   { flex-wrap: wrap; }
.flex-col    { flex-direction: column; }
.shrink-0    { flex-shrink: 0; }
.w-full      { width: 100%; }
.h-full      { height: 100%; }
.overflow-hidden { overflow: hidden; }
.pointer-events-none { pointer-events: none; }
.object-cover { object-fit: cover; }

.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }

/* ---------- Positioning used by modals and the share toast ---------- */
.z-50     { z-index: 130; }
.z-30     { z-index: 60; }
.bottom-6 { bottom: 24px; }
.right-6  { right: 24px; }

/* ---------- Spacing ---------- */
.p-2 { padding: 8px; }
.p-3 { padding: 12px; }
.p-4 { padding: 16px; }
.p-6 { padding: 24px; }
@media (min-width: 640px) { .sm\:p-6 { padding: 24px; } }

.me-1   { margin-inline-end: 4px; }
.me-1\.5{ margin-inline-end: 6px; }
.me-2   { margin-inline-end: 8px; }
.me-2\.5{ margin-inline-end: 10px; }

/* ---------- Type ---------- */
.text-xs   { font-size: 12px; line-height: 1.55; }
.w-4 { width: 16px; }
.h-4 { height: 16px; }
.opacity-50 { opacity: .5; }
.text-base { font-size: 15px; line-height: 1.6; }
.font-bold { font-weight: 700; }

/* ---------- Colour used by inline status messages ---------- */
.bg-rose-50      { background-color: var(--k-danger-soft); }
.bg-rose-100     { background-color: #FFE4E6; }
.bg-emerald-50   { background-color: var(--k-verified-soft); }
.bg-emerald-100  { background-color: #D1FAE5; }
.bg-amber-50     { background-color: var(--k-pending-soft); }
.bg-amber-100    { background-color: #FEF3C7; }
.bg-indigo-100   { background-color: #E0E7FF; }
.bg-purple-100   { background-color: #F3E8FF; }
.border-rose-200    { border-color: var(--k-danger-line); }
.border-emerald-200 { border-color: var(--k-verified-line); }
.border-amber-200   { border-color: var(--k-pending-line); }
.border-indigo-200  { border-color: #C7D2FE; }
.border-purple-200  { border-color: #E9D5FF; }
.text-rose-500    { color: var(--k-danger); }
.text-rose-600    { color: #E11D48; }
.text-rose-700    { color: #9F1239; }
.text-emerald-400 { color: #34D399; }
.text-emerald-500 { color: var(--k-verified); }
.text-emerald-600 { color: var(--k-verified); }
.text-emerald-800  { color: #065F46; }
.text-amber-500   { color: var(--k-pending); }
.text-amber-600   { color: var(--k-pending); }
.text-amber-800   { color: #92400E; }
.text-indigo-600  { color: #4F46E5; }
.text-purple-600  { color: #9333EA; }
.border { border: 1px solid var(--k-line); }
.rounded-xl { border-radius: var(--k-r); }

/* ---------- Motion helpers toggled by existing inline scripts ----------
   .transform composes the same custom properties Tailwind used, so
   scale-95 / scale-100 / translate-y-20 keep working unchanged. */
.transform {
  transform: translate(var(--tw-translate-x, 0), var(--tw-translate-y, 0))
             scale(var(--tw-scale-x, 1), var(--tw-scale-y, 1));
}
.transition-all {
  transition-property: all;
  transition-timing-function: var(--k-ease-out);
  transition-duration: 150ms;
}
.duration-200 { transition-duration: 200ms; }
.duration-300 { transition-duration: 300ms; }
.scale-95  { --tw-scale-x: .95; --tw-scale-y: .95; }
.scale-100 { --tw-scale-x: 1; --tw-scale-y: 1; }
.opacity-0   { opacity: 0; }
.opacity-100 { opacity: 1; }
.translate-y-20 { --tw-translate-y: 5rem; }

/* ---------- Small shared hooks ---------- */
.req  { color: var(--k-danger); }
.tick { color: var(--k-verified); }
.dot  { color: var(--k-line-2); }
