
*,
::before,
::after {
  box-sizing: border-box;
  border-width: 0;
  border-style: solid;
  border-color: theme('borderColor.DEFAULT', currentColor);
}

html {
  font-size: var(--user-font-size, 14pt);
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  -moz-tab-size: 4;
  tab-size: 4;
}

body {
  margin: 0;
  font-family: InterVariable, system-ui, sans-serif;
}

hr {
  height: 0;
  color: inherit;
}

abbr[title] {
  text-decoration: underline dotted;
}

b,
strong {
  font-weight: bolder;
}

code,
kbd,
samp,
pre {
  font-family: theme('fontFamily.mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);
  font-size: 1em;
}

small {
  font-size: 80%;
}

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

table {
  text-indent: 0;
  border-color: inherit;
  border-collapse: collapse;
}

button,
input,
optgroup,
select,
textarea {
  font-family: inherit;
  font-size: 100%;
  line-height: 1.15;
  margin: 0;
}

button,
select {
  text-transform: none;
}

button,
[type='button'],
[type='reset'],
[type='submit'] {
  -webkit-appearance: button;
}

::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

:-moz-focusring {
  outline: 1px dotted ButtonText;
}

:-moz-ui-invalid {
  box-shadow: none;
}

legend {
  padding: 0;
}

progress {
  vertical-align: baseline;
}

::-webkit-inner-spin-button,
::-webkit-outer-spin-button {
  height: auto;
}

[type='search'] {
  -webkit-appearance: textfield;
  outline-offset: -2px;
}

::-webkit-search-decoration {
  -webkit-appearance: none;
}

::-webkit-file-upload-button {
  -webkit-appearance: button;
  font: inherit;
}

summary {
  display: list-item;
}

blockquote,
dl,
dd,
h1,
h2,
h3,
h4,
h5,
h6,
hr,
figure,
p,
pre {
  margin: 0;
}

fieldset {
  margin: 0;
  padding: 0;
}

ol,
ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

html {
  font-family: InterVariable, system-ui, sans-serif;
  line-height: 1.5;
}

body {
  font-family: inherit;
  line-height: inherit;
}

*, ::before, ::after {
  box-sizing: border-box;
  border-width: 0;
  border-style: solid;
  border-color: #e5e7eb;
}

hr {
  border-top-width: 1px;
}

img, svg, video, canvas, audio, iframe, embed, object {
  display: block;
  vertical-align: middle;
}

img, video {
  max-width: 100%;
  height: auto;
}

:root {
  --tw-bg-opacity: 1;
  --tw-text-opacity: 1;
}

/* ============================================================ UTILITY CLASSES ============================================================ */

/* --- Box Model --- */

/* --- Display --- */

.block { display: block; }
.inline-block { display: inline-block; }
.inline { display: inline; }
.flex { display: flex; }
.grid { display: grid; }
.hidden { display: none; }

/* --- Flexbox --- */

.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1 1 0%; }
.flex-shrink-0 { flex-shrink: 0; }

/* --- Alignment --- */

.items-start { align-items: flex-start; }
.items-center { align-items: center; }
.items-end { align-items: flex-end; }
.items-baseline { align-items: baseline; }

/* --- Justify Content --- */

.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.justify-between { justify-content: space-between; }

/* --- Spacing: Margin --- */

.mx-auto { margin-left: auto; margin-right: auto; }
.ml-auto { margin-left: auto; }

.mt-2 { margin-top: 0.5rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }

.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-16 { margin-bottom: 4rem; }

.mr-2 { margin-right: 0.5rem; }

/* --- Spacing: Padding --- */

.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }

.px-1 { padding-left: 0.25rem; padding-right: 0.25rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }

.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }

.pb-4 { padding-bottom: 1rem; }

.pr-2 { padding-right: 0.5rem; }

/* --- Spacing: Gap --- */

.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

.space-x-1 > :not([hidden]) ~ :not([hidden]) { margin-left: 0.25rem; }
.space-x-2 > :not([hidden]) ~ :not([hidden]) { margin-left: 0.5rem; }
.space-x-4 > :not([hidden]) ~ :not([hidden]) { margin-left: 1rem; }
.space-x-8 > :not([hidden]) ~ :not([hidden]) { margin-left: 2rem; }

.space-y-1 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.25rem; }
.space-y-2 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.5rem; }
.space-y-4 > :not([hidden]) ~ :not([hidden]) { margin-top: 1rem; }
.space-y-6 > :not([hidden]) ~ :not([hidden]) { margin-top: 1.5rem; }
.space-y-8 > :not([hidden]) ~ :not([hidden]) { margin-top: 2rem; }

/* --- Sizing: Width --- */

.w-4 { width: 1rem; }
.w-6 { width: 1.5rem; }
.w-10 { width: 2.5rem; }
.w-20 { width: 5rem; }
.w-56 { width: 14rem; }
.w-full { width: 100%; }

/* --- Sizing: Min/Max Width --- */

.min-w-0 { min-width: 0px; }
.max-w-lg { max-width: 32rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-7xl { max-width: 80rem; }

/* --- Sizing: Height --- */

.h-4 { height: 1rem; }
.h-6 { height: 1.5rem; }
.h-10 { height: 2.5rem; }
.h-20 { height: 5rem; }

/* --- Sizing: Size --- */

/* --- Typography: Font Size --- */

.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }

/* --- Typography: Font Weight --- */

.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; }

/* --- Typography: Line Height --- */

.leading-relaxed { line-height: 1.625; }

/* --- Typography: Letter Spacing --- */

.tracking-wide { letter-spacing: 0.025em; }

/* --- Typography: Text Alignment --- */

.text-left { text-align: left; }
.text-center { text-align: center; }

/* --- Typography: Text Decoration --- */

/* --- Typography: Text Transform --- */

.uppercase { text-transform: uppercase; }

/* --- Typography: Text Overflow --- */

.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* --- Typography: Whitespace --- */

.whitespace-pre-wrap { white-space: pre-wrap; }

/* --- Typography: Word Break --- */

.break-words { overflow-wrap: break-word; }

/* --- Typography: List Style --- */

/* --- Typography: Vertical Align --- */

/* --- Typography: Font Family --- */

/* --- Background --- */

.bg-gray-800 { background-color: #1f2937; }
.bg-gray-900 { background-color: #111827; }

/* --- Text Colors --- */

.text-white { color: #ffffff; }
.text-gray-300 { color: #d1d5db; }
.text-gray-400 { color: #9ca3af; }
.text-gray-500 { color: #6b7280; }
.text-gray-600 { color: #4b5563; }
.text-gray-800 { color: #1f2937; }

.text-red-400 { color: #f87171; }

.text-blue-400 { color: #60a5fa; }

.text-indigo-600 { color: #4f46e5; }

/* --- Border --- */

.border { border-width: 1px; }

.border-t { border-top-width: 1px; }

.border-b { border-bottom-width: 1px; }

.border-gray-300 { border-color: #d1d5db; }
.border-gray-700 { border-color: #374151; }

/* --- Border Radius --- */

.rounded { border-radius: 0.25rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }

/* --- Shadow --- */

/* --- Opacity --- */

/* --- Position --- */

.static { position: static; }
.relative { position: relative; }

/* --- Z-Index --- */

/* --- Overflow --- */

.overflow-hidden { overflow: hidden; }
.overflow-x-auto { overflow-x: auto; }

/* --- Object Fit --- */

/* --- Cursor --- */

.cursor-pointer { cursor: pointer; }

/* --- Pointer Events --- */

/* --- User Select --- */

/* --- Visibility --- */

/* --- Appearance --- */

/* --- Outline --- */

/* --- Ring --- */

/* --- Transition --- */

.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-colors { transition-property: color, background-color, border-color, text-decoration-color, fill, stroke; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }

.duration-200 { transition-duration: 200ms; }

/* --- Transform --- */

/* --- Filter --- */

/* --- Table Layout --- */

/* --- Border Collapse --- */

/* --- Table Cell Vertical Alignment --- */

/* --- Table Cell Text Alignment --- */

.text-left { text-align: left; }
.text-center { text-align: center; }

/* --- Misc Utility --- */

/* --- Grid --- */

.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }

@media (min-width: 640px) {
  .sm\:mx-auto { margin-left: auto; margin-right: auto; }
  .sm\:w-full { width: 100%; }
  .sm\:max-w-sm { max-width: 24rem; }
}

@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:table-cell { display: table-cell; }
}

@media (min-width: 1024px) {
  .lg\:table-cell { display: table-cell; }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* --- Border Radius (extended) --- */

.rounded-xl { border-radius: 0.75rem; }

.max-w-7xl { max-width: 80rem; }

/* --- Utilities (по мере необходимости, Tailwind v4.3) --- */

.bg-red-500\/10 { background-color: rgba(239, 68, 68, 0.1); }
.bg-yellow-500\/10 { background-color: rgba(250, 204, 21, 0.1); }

.border-red-500\/20 { border-color: rgba(239, 68, 68, 0.2); }
.border-yellow-500\/20 { border-color: rgba(250, 204, 21, 0.2); }
.border-white\/10 { border-color: rgba(255, 255, 255, 0.1); }

.text-yellow-400 { color: #facc15; }

.hover\:bg-gray-800\/50:hover { background-color: rgba(31, 41, 55, 0.5); }
.hover\:text-white:hover { color: #ffffff; }
.hover\:text-blue-300:hover { color: #93c5fd; }
.hover\:underline:hover { text-decoration: underline; }

.focus\:ring-indigo-500:focus { box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.35); }

/* --- Root Variables (default colors, overridden by themes) --- */

:root {
  --color-primary: #2563eb;
  --color-primary-hover: #1d4ed8;
  --color-on-primary: #ffffff;
  --color-danger: #dc2626;
  --color-danger-hover: #b91c1c;
  --color-on-danger: #ffffff;
  --color-bg: #ffffff;
  --color-bg-secondary: #f3f4f6;
  --color-bg-button: #f3f4f6;
  --color-text: #111827;
  --color-text-secondary: #6b7280;
  --color-text-placeholder: #9ca3af;
  --color-border: #d1d5db;
  --color-navbar-bg: #ffffff;
  --color-avatar-border: #ffffff;
  --color-card-border: #d1d5db;
  --color-card-hover-border: #9ca3af;
  --color-card-hover-bg: #f3f4f6;

  --badge-red-bg: rgba(239, 68, 68, 0.1);
  --badge-red-fg: #991b1b;
  --badge-orange-bg: rgba(249, 115, 22, 0.1);
  --badge-orange-fg: #9a3412;
  --badge-yellow-bg: rgba(250, 204, 21, 0.1);
  --badge-yellow-fg: #854d0e;
  --badge-green-bg: rgba(34, 197, 94, 0.1);
  --badge-green-fg: #166534;
  --badge-blue-bg: rgba(59, 130, 246, 0.1);
  --badge-blue-fg: #1d4ed8;
  --badge-purple-bg: rgba(168, 85, 247, 0.1);
  --badge-purple-fg: #6b21a8;
  --badge-cyan-bg: rgba(34, 211, 238, 0.1);
  --badge-cyan-fg: #155e75;
  --badge-zinc-bg: rgba(113, 113, 122, 0.1);
  --badge-zinc-fg: #3f3f46;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
}

a {
  color: var(--color-primary);
  text-decoration: none;
  cursor: pointer;
}
