/*
 * The Pupil Eye — in-house Performance utilities
 * ------------------------------------------------
 * Browser-native, locally hosted replacement for the Tailwind Play CDN.
 * Every rule is scoped to .tw-scope so this file cannot restyle the legacy SPA.
 * Keep this file alongside the utility classes used by the Performance markup in
 * index.html and renderPerformanceCards()/openPerformanceDrill().
 */

/* Display and positioning */
.tw-scope .hidden { display: none !important; }
.tw-scope .block { display: block; }
.tw-scope .flex { display: flex; }
.tw-scope .inline-flex { display: inline-flex; }
.tw-scope .grid { display: grid; }
.tw-scope .fixed { position: fixed; }
.tw-scope .absolute { position: absolute; }
.tw-scope .relative { position: relative; }
.tw-scope .inset-0 { inset: 0; }
.tw-scope .top-0 { top: 0; }
.tw-scope .right-0 { right: 0; }
.tw-scope .bottom-0 { bottom: 0; }
.tw-scope .left-3 { left: .75rem; }
.tw-scope .top-1\/2 { top: 50%; }
.tw-scope .-translate-y-1\/2 { transform: translateY(-50%); }
.tw-scope [class~="z-[55]"] { z-index: 55; }
.tw-scope [class~="z-[60]"] { z-index: 60; }

/* Flex and grid */
.tw-scope .flex-1 { flex: 1 1 0%; }
.tw-scope .flex-col { flex-direction: column; }
.tw-scope .flex-wrap { flex-wrap: wrap; }
.tw-scope .shrink-0 { flex-shrink: 0; }
.tw-scope .items-start { align-items: flex-start; }
.tw-scope .items-center { align-items: center; }
.tw-scope .items-end { align-items: flex-end; }
.tw-scope .justify-center { justify-content: center; }
.tw-scope .justify-between { justify-content: space-between; }
.tw-scope .grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.tw-scope .grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tw-scope .col-span-full { grid-column: 1 / -1; }
.tw-scope .gap-0\.5 { gap: .125rem; }
.tw-scope .gap-1 { gap: .25rem; }
.tw-scope .gap-1\.5 { gap: .375rem; }
.tw-scope .gap-2 { gap: .5rem; }
.tw-scope .gap-2\.5 { gap: .625rem; }
.tw-scope .gap-3 { gap: .75rem; }
.tw-scope .gap-4 { gap: 1rem; }
.tw-scope .gap-5 { gap: 1.25rem; }
.tw-scope .space-y-2 > :not([hidden]) ~ :not([hidden]) { margin-top: .5rem; }
.tw-scope .space-y-3 > :not([hidden]) ~ :not([hidden]) { margin-top: .75rem; }

/* Sizing */
.tw-scope .w-full { width: 100%; }
.tw-scope .w-3 { width: .75rem; }
.tw-scope .w-9 { width: 2.25rem; }
.tw-scope .w-12 { width: 3rem; }
.tw-scope .w-16 { width: 4rem; }
.tw-scope .w-64 { width: 16rem; }
.tw-scope [class~="w-[130px]"] { width: 130px; }
.tw-scope .h-full { height: 100%; }
.tw-scope .h-1 { height: .25rem; }
.tw-scope .h-1\.5 { height: .375rem; }
.tw-scope .h-3 { height: .75rem; }
.tw-scope .h-9 { height: 2.25rem; }
.tw-scope .h-12 { height: 3rem; }
.tw-scope .h-16 { height: 4rem; }
.tw-scope .min-w-0 { min-width: 0; }
.tw-scope [class~="min-w-[180px]"] { min-width: 180px; }
.tw-scope .max-w-md { max-width: 28rem; }

/* Padding */
.tw-scope .p-1\.5 { padding: .375rem; }
.tw-scope .p-2\.5 { padding: .625rem; }
.tw-scope .p-3\.5 { padding: .875rem; }
.tw-scope .px-1\.5 { padding-left: .375rem; padding-right: .375rem; }
.tw-scope .px-2 { padding-left: .5rem; padding-right: .5rem; }
.tw-scope .px-3 { padding-left: .75rem; padding-right: .75rem; }
.tw-scope .px-3\.5 { padding-left: .875rem; padding-right: .875rem; }
.tw-scope .px-4 { padding-left: 1rem; padding-right: 1rem; }
.tw-scope .px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.tw-scope .py-0\.5 { padding-top: .125rem; padding-bottom: .125rem; }
.tw-scope .py-1\.5 { padding-top: .375rem; padding-bottom: .375rem; }
.tw-scope .py-2 { padding-top: .5rem; padding-bottom: .5rem; }
.tw-scope .py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.tw-scope .py-5 { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.tw-scope .py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.tw-scope .py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.tw-scope .py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.tw-scope .pl-9 { padding-left: 2.25rem; }
.tw-scope .pr-3 { padding-right: .75rem; }
.tw-scope .pt-2\.5 { padding-top: .625rem; }

/* Margins */
.tw-scope .mb-0\.5 { margin-bottom: .125rem; }
.tw-scope .mb-1 { margin-bottom: .25rem; }
.tw-scope .mb-1\.5 { margin-bottom: .375rem; }
.tw-scope .mb-2 { margin-bottom: .5rem; }
.tw-scope .mb-3 { margin-bottom: .75rem; }
.tw-scope .mb-4 { margin-bottom: 1rem; }
.tw-scope .mb-6 { margin-bottom: 1.5rem; }
.tw-scope .mb-8 { margin-bottom: 2rem; }
.tw-scope .mr-2 { margin-right: .5rem; }
.tw-scope .ml-auto { margin-left: auto; }
.tw-scope .mt-0\.5 { margin-top: .125rem; }
.tw-scope .mt-1 { margin-top: .25rem; }
.tw-scope .mt-2 { margin-top: .5rem; }
.tw-scope .mt-5 { margin-top: 1.25rem; }

/* Typography */
.tw-scope .text-left { text-align: left; }
.tw-scope .text-center { text-align: center; }
.tw-scope .text-xs { font-size: .75rem; line-height: 1rem; }
.tw-scope .text-sm { font-size: .875rem; line-height: 1.25rem; }
.tw-scope .text-base { font-size: 1rem; line-height: 1.5rem; }
.tw-scope .text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.tw-scope .text-2xl { font-size: 1.5rem; line-height: 2rem; }
.tw-scope .text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.tw-scope [class~="text-[9px]"] { font-size: 9px; }
.tw-scope [class~="text-[10px]"] { font-size: 10px; }
.tw-scope [class~="text-[11px]"] { font-size: 11px; }
.tw-scope [class~="text-[12px]"] { font-size: 12px; }
.tw-scope [class~="text-[13px]"] { font-size: 13px; }
.tw-scope [class~="text-[14px]"] { font-size: 14px; }
.tw-scope [class~="text-[15px]"] { font-size: 15px; }
.tw-scope [class~="text-[16px]"] { font-size: 16px; }
.tw-scope [class~="text-[18px]"] { font-size: 18px; }
.tw-scope [class~="text-[20px]"] { font-size: 20px; }
.tw-scope [class~="text-[32px]"] { font-size: 32px; }
.tw-scope .font-medium { font-weight: 500; }
.tw-scope .font-semibold { font-weight: 600; }
.tw-scope .font-bold { font-weight: 700; }
.tw-scope .leading-none { line-height: 1; }
.tw-scope .leading-tight { line-height: 1.25; }
.tw-scope .leading-snug { line-height: 1.375; }
.tw-scope .leading-relaxed { line-height: 1.625; }
.tw-scope .tracking-tight { letter-spacing: -.025em; }
.tw-scope .tracking-wider { letter-spacing: .05em; }
.tw-scope .uppercase { text-transform: uppercase; }
.tw-scope .truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tw-scope .whitespace-nowrap { white-space: nowrap; }

/* Foreground colors */
.tw-scope .text-white { color: #fff; }
.tw-scope .text-slate-300 { color: #cbd5e1; }
.tw-scope .text-slate-400 { color: #94a3b8; }
.tw-scope .text-slate-500 { color: #64748b; }
.tw-scope .text-slate-600 { color: #475569; }
.tw-scope .text-slate-700 { color: #334155; }
.tw-scope .text-slate-900 { color: #0f172a; }
.tw-scope .text-violet-500 { color: #8b5cf6; }
.tw-scope .text-violet-600 { color: #7c3aed; }
.tw-scope .text-violet-700 { color: #6d28d9; }
.tw-scope .text-blue-700 { color: #1d4ed8; }
.tw-scope .text-cyan-700 { color: #0e7490; }
.tw-scope .text-emerald-500 { color: #10b981; }
.tw-scope .text-emerald-600 { color: #059669; }
.tw-scope .text-emerald-700 { color: #047857; }
.tw-scope .text-emerald-800 { color: #065f46; }
.tw-scope .text-amber-500 { color: #f59e0b; }
.tw-scope .text-amber-600 { color: #d97706; }
.tw-scope .text-amber-700 { color: #b45309; }
.tw-scope .text-amber-800 { color: #92400e; }
.tw-scope .text-yellow-800 { color: #854d0e; }
.tw-scope .text-orange-800 { color: #9a3412; }
.tw-scope .text-rose-400 { color: #fb7185; }
.tw-scope .text-rose-500 { color: #f43f5e; }
.tw-scope .text-rose-600 { color: #e11d48; }
.tw-scope .text-rose-700 { color: #be123c; }
.tw-scope .text-rose-800 { color: #9f1239; }
.tw-scope .text-pink-700 { color: #be185d; }
.tw-scope .text-indigo-700 { color: #4338ca; }

/* Background colors and gradients */
.tw-scope .bg-transparent { background-color: transparent; }
.tw-scope .bg-white { background-color: #fff; }
.tw-scope .bg-slate-50 { background-color: #f8fafc; }
.tw-scope .bg-slate-100 { background-color: #f1f5f9; }
.tw-scope .bg-slate-900\/30 { background-color: rgba(15, 23, 42, .3); }
.tw-scope .bg-violet-100 { background-color: #ede9fe; }
.tw-scope .bg-violet-500 { background-color: #8b5cf6; }
.tw-scope .bg-violet-600 { background-color: #7c3aed; }
.tw-scope .bg-blue-100 { background-color: #dbeafe; }
.tw-scope .bg-cyan-100 { background-color: #cffafe; }
.tw-scope .bg-emerald-50 { background-color: #ecfdf5; }
.tw-scope .bg-emerald-100 { background-color: #d1fae5; }
.tw-scope .bg-emerald-500 { background-color: #10b981; }
.tw-scope .bg-amber-50 { background-color: #fffbeb; }
.tw-scope .bg-amber-100 { background-color: #fef3c7; }
.tw-scope .bg-amber-500 { background-color: #f59e0b; }
.tw-scope .bg-yellow-100 { background-color: #fef9c3; }
.tw-scope .bg-orange-100 { background-color: #ffedd5; }
.tw-scope .bg-rose-50 { background-color: #fff1f2; }
.tw-scope .bg-rose-100 { background-color: #ffe4e6; }
.tw-scope .bg-rose-500 { background-color: #f43f5e; }
.tw-scope .bg-pink-100 { background-color: #fce7f3; }
.tw-scope .bg-indigo-100 { background-color: #e0e7ff; }
.tw-scope .bg-gradient-to-br { background-image: linear-gradient(to bottom right, var(--tpe-gradient-from), var(--tpe-gradient-to)); }
.tw-scope .from-violet-50 { --tpe-gradient-from: #f5f3ff; }
.tw-scope .to-white { --tpe-gradient-to: #fff; }

/* Borders, radius and shadows */
.tw-scope .border { border-width: 1px; border-style: solid; }
.tw-scope .border-2 { border-width: 2px; border-style: solid; }
.tw-scope .border-t { border-top-width: 1px; border-top-style: solid; }
.tw-scope .border-b { border-bottom-width: 1px; border-bottom-style: solid; }
.tw-scope .border-none { border-style: none; }
.tw-scope .border-dashed { border-style: dashed; }
.tw-scope .border-white { border-color: #fff; }
.tw-scope .border-slate-100 { border-color: #f1f5f9; }
.tw-scope .border-slate-200 { border-color: #e2e8f0; }
.tw-scope .border-violet-200 { border-color: #ddd6fe; }
.tw-scope .border-rose-200 { border-color: #fecdd3; }
.tw-scope .rounded { border-radius: .25rem; }
.tw-scope .rounded-md { border-radius: .375rem; }
.tw-scope .rounded-lg { border-radius: .5rem; }
.tw-scope .rounded-2xl { border-radius: 1rem; }
.tw-scope .rounded-full { border-radius: 9999px; }
.tw-scope .shadow-sm { box-shadow: 0 1px 2px rgba(0, 0, 0, .05); }
.tw-scope .shadow { box-shadow: 0 1px 3px rgba(0, 0, 0, .1), 0 1px 2px rgba(0, 0, 0, .06); }
.tw-scope .shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, .25); }
.tw-scope [class~="shadow-[0_1px_2px_rgba(15,23,42,0.04)]"] { box-shadow: 0 1px 2px rgba(15, 23, 42, .04); }

/* Media, overflow and effects */
.tw-scope .object-cover { object-fit: cover; }
.tw-scope .overflow-hidden { overflow: hidden; }
.tw-scope .overflow-y-auto { overflow-y: auto; }
.tw-scope .backdrop-blur-sm { -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.tw-scope .cursor-pointer { cursor: pointer; }
.tw-scope .outline-none,
.tw-scope .focus\:outline-none:focus { outline: 2px solid transparent; outline-offset: 2px; }
.tw-scope .transition-all { transition: all .15s ease; }
.tw-scope .transition-colors { transition: color .15s ease, background-color .15s ease, border-color .15s ease; }
.tw-scope .duration-300 { transition-duration: .3s; }
.tw-scope .hover\:shadow-md:hover { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, .1), 0 2px 4px -2px rgba(0, 0, 0, .1); }
.tw-scope .hover\:underline:hover { text-decoration-line: underline; }
.tw-scope .hover\:bg-slate-100:hover { background-color: #f1f5f9; }
.tw-scope .hover\:bg-violet-700:hover { background-color: #6d28d9; }
.tw-scope .hover\:bg-violet-50\/30:hover { background-color: rgba(245, 243, 255, .3); }
.tw-scope .hover\:bg-emerald-200:hover { background-color: #a7f3d0; }
.tw-scope .hover\:bg-yellow-200:hover { background-color: #fef08a; }
.tw-scope .hover\:bg-amber-200:hover { background-color: #fde68a; }
.tw-scope .hover\:bg-rose-200:hover { background-color: #fecdd3; }
.tw-scope .hover\:border-violet-400:hover { border-color: #a78bfa; }
.tw-scope .active\:scale-95:active { transform: scale(.95); }
.tw-scope .focus\:border-violet-500:focus { border-color: #8b5cf6; }
.tw-scope .focus\:ring-violet-300:focus { --tpe-ring-color: #c4b5fd; }
.tw-scope .focus\:ring-violet-500:focus { --tpe-ring-color: #8b5cf6; }
.tw-scope .focus\:ring-2:focus { box-shadow: 0 0 0 2px var(--tpe-ring-color, #8b5cf6); }

/* Responsive grid utilities used by Performance only */
@media (min-width: 768px) {
    .tw-scope .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
    .tw-scope .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tw-scope .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1280px) {
    .tw-scope .xl\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
