/* Переопределение rem на em для совместимости */

/* Переопределяем Tailwind классы, использующие rem */
.text-xs { font-size: 0.75em !important; line-height: 1.25em !important; }
.text-sm { font-size: 0.875em !important; line-height: 1.25em !important; }
.text-base { font-size: 1em !important; line-height: 1.5em !important; }
.text-lg { font-size: 1.125em !important; line-height: 1.75em !important; }
.text-xl { font-size: 1.25em !important; line-height: 1.75em !important; }
.text-2xl { font-size: 1.5em !important; line-height: 2em !important; }
.text-3xl { font-size: 1.875em !important; line-height: 2.25em !important; }
.text-4xl { font-size: 2.25em !important; line-height: 2.5em !important; }

/* Отступы и размеры */
.p-1 { padding: 0.25em !important; }
.p-2 { padding: 0.5em !important; }
.p-3 { padding: 0.75em !important; }
.p-4 { padding: 1em !important; }
.p-5 { padding: 1.25em !important; }
.p-6 { padding: 1.5em !important; }
.p-8 { padding: 2em !important; }

.px-1 { padding-left: 0.25em !important; padding-right: 0.25em !important; }
.px-2 { padding-left: 0.5em !important; padding-right: 0.5em !important; }
.px-3 { padding-left: 0.75em !important; padding-right: 0.75em !important; }
.px-4 { padding-left: 1em !important; padding-right: 1em !important; }
.px-5 { padding-left: 1.25em !important; padding-right: 1.25em !important; }

.py-1 { padding-top: 0.25em !important; padding-bottom: 0.25em !important; }
.py-2 { padding-top: 0.5em !important; padding-bottom: 0.5em !important; }
.py-2\.5 { padding-top: 0.625em !important; padding-bottom: 0.625em !important; }
.py-3 { padding-top: 0.75em !important; padding-bottom: 0.75em !important; }
.py-4 { padding-top: 1em !important; padding-bottom: 1em !important; }
.py-5 { padding-top: 1.25em !important; padding-bottom: 1.25em !important; }

.m-1 { margin: 0.25em !important; }
.m-2 { margin: 0.5em !important; }
.m-3 { margin: 0.75em !important; }
.m-4 { margin: 1em !important; }
.m-5 { margin: 1.25em !important; }
.m-6 { margin: 1.5em !important; }

.mt-1 { margin-top: 0.25em !important; }
.mt-2 { margin-top: 0.5em !important; }
.mt-3 { margin-top: 0.75em !important; }
.mt-4 { margin-top: 1em !important; }
.mt-5 { margin-top: 1.25em !important; }

.mr-1 { margin-right: 0.25em !important; }
.mr-2 { margin-right: 0.5em !important; }
.mr-3 { margin-right: 0.75em !important; }
.mr-4 { margin-right: 1em !important; }
.mr-5 { margin-right: 1.25em !important; }

.ml-1 { margin-left: 0.25em !important; }
.ml-2 { margin-left: 0.5em !important; }
.ml-3 { margin-left: 0.75em !important; }
.ml-4 { margin-left: 1em !important; }
.ml-5 { margin-left: 1.25em !important; }

.mb-1 { margin-bottom: 0.25em !important; }
.mb-2 { margin-bottom: 0.5em !important; }
.mb-3 { margin-bottom: 0.75em !important; }
.mb-4 { margin-bottom: 1em !important; }
.mb-5 { margin-bottom: 1.25em !important; }

/* Размеры элементов */
.w-1 { width: 0.25em !important; }
.w-2 { width: 0.5em !important; }
.w-3 { width: 0.75em !important; }
.w-4 { width: 1em !important; }
.w-5 { width: 1.25em !important; }
.w-6 { width: 1.5em !important; }
.w-8 { width: 2em !important; }
.w-12 { width: 3em !important; }
.w-16 { width: 4em !important; }
.w-20 { width: 5em !important; }
.w-24 { width: 6em !important; }
.w-32 { width: 8em !important; }
.w-40 { width: 10em !important; }
.w-48 { width: 12em !important; }
.w-56 { width: 14em !important; }
.w-64 { width: 16em !important; }
.w-auto { width: auto !important; }
.w-full { width: 100% !important; }
.w-screen { width: 100vw !important; }

.h-1 { height: 0.25em !important; }
.h-2 { height: 0.5em !important; }
.h-3 { height: 0.75em !important; }
.h-4 { height: 1em !important; }
.h-5 { height: 1.25em !important; }
.h-6 { height: 1.5em !important; }
.h-8 { height: 2em !important; }
.h-12 { height: 3em !important; }
.h-16 { height: 4em !important; }
.h-20 { height: 5em !important; }
.h-24 { height: 6em !important; }
.h-32 { height: 8em !important; }
.h-40 { height: 10em !important; }
.h-48 { height: 12em !important; }
.h-56 { height: 14em !important; }
.h-64 { height: 16em !important; }
.h-auto { height: auto !important; }
.h-full { height: 100% !important; }
.h-screen { height: 100vh !important; }

/* Закругления */
.rounded-sm { border-radius: 0.125em !important; }
.rounded { border-radius: 0.25em !important; }
.rounded-md { border-radius: 0.375em !important; }
.rounded-lg { border-radius: 0.5em !important; }
.rounded-xl { border-radius: 0.75em !important; }
.rounded-2xl { border-radius: 1em !important; }
.rounded-3xl { border-radius: 1.5em !important; }
.rounded-full { border-radius: 9999px !important; }

/* Границы */
.border { border-width: 1px !important; }
.border-0 { border-width: 0 !important; }
.border-2 { border-width: 2px !important; }
.border-4 { border-width: 4px !important; }
.border-8 { border-width: 8px !important; }

/* Отступы между элементами */
.gap-1 { gap: 0.25em !important; }
.gap-2 { gap: 0.5em !important; }
.gap-3 { gap: 0.75em !important; }
.gap-4 { gap: 1em !important; }
.gap-5 { gap: 1.25em !important; }
.gap-6 { gap: 1.5em !important; }
.gap-8 { gap: 2em !important; }

.space-x-1 > * + * { margin-left: 0.25em !important; }
.space-x-2 > * + * { margin-left: 0.5em !important; }
.space-x-3 > * + * { margin-left: 0.75em !important; }
.space-x-4 > * + * { margin-left: 1em !important; }
.space-x-5 > * + * { margin-left: 1.25em !important; }

.space-y-1 > * + * { margin-top: 0.25em !important; }
.space-y-2 > * + * { margin-top: 0.5em !important; }
.space-y-3 > * + * { margin-top: 0.75em !important; }
.space-y-4 > * + * { margin-top: 1em !important; }
.space-y-5 > * + * { margin-top: 1.25em !important; }

/* Максимальные ширины */
.max-w-xs { max-width: 20em !important; }
.max-w-sm { max-width: 24em !important; }
.max-w-md { max-width: 28em !important; }
.max-w-lg { max-width: 32em !important; }
.max-w-xl { max-width: 36em !important; }
.max-w-2xl { max-width: 42em !important; }
.max-w-3xl { max-width: 48em !important; }
.max-w-4xl { max-width: 56em !important; }
.max-w-5xl { max-width: 64em !important; }
.max-w-6xl { max-width: 72em !important; }
.max-w-7xl { max-width: 80em !important; }
.max-w-full { max-width: 100% !important; }
.max-w-screen-sm { max-width: 640px !important; }
.max-w-screen-md { max-width: 768px !important; }
.max-w-screen-lg { max-width: 1024px !important; }
.max-w-screen-xl { max-width: 1280px !important; }
.max-w-screen-2xl { max-width: 1536px !important; }

/* Специфичные размеры */
.text-\[14px\] { font-size: 0.875em !important; }
.text-\[18px\] { font-size: 1.125em !important; }
.p-\[8px\] { padding: 0.5em !important; }
.gap-\[10px\] { gap: 0.625em !important; }
.gap-\[5px\] { gap: 0.3125em !important; }
.h-\[150px\] { height: 9.375em !important; }
.h-\[calc\(100\%-1rem\)\] { height: calc(100% - 1em) !important; }

.prose { font-size: 0.8em; }