/*
 * Faktury cykliczne: interfejs według design systemu szewcz.uk.
 * Tylko ciemny motyw Mono: czerń, biel i szarości bez odcienia, jeden krój (DM Sans),
 * cienkie linie zamiast wypełnień, ruch tylko unosi albo wygasza.
 */

:root {
  color-scheme: dark;

  /* kolor (motyw Mono) */
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 0);
  --card: oklch(0.2 0 0);
  --card-foreground: oklch(1 0 0);
  --primary: oklch(1 0 0);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.26 0 0);
  --secondary-foreground: oklch(1 0 0);
  --muted: oklch(0.26 0 0);
  --muted-foreground: oklch(0.66 0 0);
  --destructive: oklch(1 0 0);
  --border: oklch(0.3 0 0);
  --input: oklch(0.3 0 0);
  --ring: oklch(1 0 0);
  --sidebar: oklch(0.18 0 0);

  /* typografia */
  --font-sans: "DM Sans", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "DM Sans", ui-sans-serif, system-ui, sans-serif;

  /* odstępy */
  --space-1: 0.25rem;
  --space-1-5: 0.375rem;
  --space-2: 0.5rem;
  --space-2-5: 0.625rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* promienie */
  --radius-md: 0.4rem;
  --radius-lg: 0.5rem;
  --radius-full: 9999px;

  /* cienie (tylko na hover) */
  --shadow-row-hover: 0 10px 15px -3px oklch(1 0 0 / 0.05), 0 4px 6px -4px oklch(1 0 0 / 0.05);
  --shadow-card-hover: 0 20px 25px -5px oklch(1 0 0 / 0.1), 0 8px 10px -6px oklch(1 0 0 / 0.1);
  --shadow-cta-hover: 0 10px 15px -3px oklch(1 0 0 / 0.2), 0 4px 6px -4px oklch(1 0 0 / 0.2);

  /* ruch */
  --duration-default: 150ms;
  --duration-fast: 200ms;
  --duration-base: 300ms;
  --duration-enter: 500ms;
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-default: cubic-bezier(0.4, 0, 0.2, 1);

  /* układ */
  --container: 72rem;
  --aside-width: 17rem;
  --measure-text: 28rem;
}

/* --- podstawy --------------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
  border: 0 solid var(--border);
}

html {
  -webkit-text-size-adjust: 100%;
}

html,
body {
  margin: 0;
}

body {
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.625;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

::selection {
  background: var(--foreground);
  color: var(--background);
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid color-mix(in oklab, var(--ring) 50%, transparent);
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

.icon {
  flex-shrink: 0;
}

.i3 {
  width: 0.75rem;
  height: 0.75rem;
}

.i4 {
  width: 1rem;
  height: 1rem;
}

.i5 {
  width: 1.25rem;
  height: 1.25rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

/* --- typografia --------------------------------------------------------------------- */

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 16px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.heading {
  font-size: 24px;
  line-height: 32px;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.title {
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
  color: var(--foreground);
}

.lead {
  font-size: 16px;
  line-height: 1.625;
  color: var(--muted-foreground);
}

.body-sm {
  font-size: 14px;
  line-height: 1.625;
  color: var(--muted-foreground);
}

.muted {
  color: var(--muted-foreground);
}

.em {
  font-weight: 500;
  color: var(--foreground);
}

.num {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.tabular {
  font-variant-numeric: tabular-nums;
}

/* Znak rozpoznawczy: 1 px linia przed etykietą. */
.section-heading {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin: 0 0 var(--space-4);
}

.section-heading::before {
  content: "";
  height: 1px;
  width: var(--space-6);
  background: var(--primary);
}

/* --- układ ------------------------------------------------------------------------- */

.shell {
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--space-8) var(--space-4) var(--space-20);
}

.aside {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  margin-bottom: var(--space-12);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.logo {
  width: 44px;
  height: 44px;
  color: var(--primary);
  flex-shrink: 0;
}

.brand-name {
  font-size: 20px;
  line-height: 28px;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.brand-tagline {
  max-width: 24rem;
}

.main {
  min-width: 0;
}

@media (min-width: 1024px) {
  .shell {
    display: grid;
    grid-template-columns: var(--aside-width) minmax(0, 1fr);
    column-gap: var(--space-12);
    padding: var(--space-12);
  }

  .aside {
    position: sticky;
    top: var(--space-12);
    align-self: start;
    min-height: calc(100vh - var(--space-24));
    margin-bottom: 0;
  }

  .logo {
    width: 48px;
    height: 48px;
  }

  .brand {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Nawigacja w motywie SectionNav: linia + etykieta eyebrow. */
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-6);
}

.nav-item {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-1) 0;
}

.nav-rule {
  height: 1px;
  width: var(--space-6);
  background: color-mix(in oklab, var(--muted-foreground) 50%, transparent);
  transition: width var(--duration-default) var(--ease-default), background-color var(--duration-default) var(--ease-default);
}

.nav-label {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  transition: color var(--duration-default) var(--ease-default);
}

.nav-item:hover .nav-rule {
  width: var(--space-8);
  background: var(--foreground);
}

.nav-item:hover .nav-label {
  color: var(--foreground);
}

.nav-item[aria-current="page"] .nav-rule {
  width: var(--space-12);
  background: var(--primary);
}

.nav-item[aria-current="page"] .nav-label {
  color: var(--primary);
}

@media (min-width: 1024px) {
  .nav {
    flex-direction: column;
    gap: var(--space-4);
    margin-top: var(--space-4);
  }

  .nav-rule {
    width: var(--space-8);
  }

  .nav-item:hover .nav-rule {
    width: var(--space-12);
  }

  .nav-item[aria-current="page"] .nav-rule {
    width: var(--space-16);
  }
}

.aside-footer {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

@media (min-width: 1024px) {
  .aside-footer {
    margin-top: auto;
  }
}

/* --- nagłówek strony ------------------------------------------------------------------- */

.page-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

.page-header .lead {
  margin-top: var(--space-2);
  max-width: 40rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
}

.stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.section {
  margin-top: var(--space-12);
}

/* --- karty -------------------------------------------------------------------------- */

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}

.card-link {
  display: block;
  transition: transform var(--duration-base) var(--ease-out), box-shadow var(--duration-base) var(--ease-out),
    border-color var(--duration-base) var(--ease-out);
}

.card-link:hover {
  transform: translateY(-2px);
  border-color: color-mix(in oklab, var(--primary) 40%, transparent);
  box-shadow: var(--shadow-card-hover);
}

.grid-2 {
  display: grid;
  gap: var(--space-4);
}

@media (min-width: 640px) {
  .grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.dl {
  display: grid;
  grid-template-columns: minmax(8rem, max-content) minmax(0, 1fr);
  gap: var(--space-2) var(--space-6);
  margin: 0;
}

.dl dt {
  font-size: 14px;
  line-height: 1.625;
  color: var(--muted-foreground);
}

.dl dd {
  margin: 0;
  font-size: 14px;
  line-height: 1.625;
  overflow-wrap: anywhere;
}

/* --- harmonogramy (wiersze) ---------------------------------------------------------- */

.rows {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.row-card {
  display: grid;
  gap: var(--space-3);
  padding: var(--space-5);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform var(--duration-base) var(--ease-out), box-shadow var(--duration-base) var(--ease-out),
    border-color var(--duration-base) var(--ease-out);
}

a.row-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in oklab, var(--primary) 40%, transparent);
  box-shadow: var(--shadow-row-hover);
}

@media (min-width: 640px) {
  .row-card {
    grid-template-columns: 7rem minmax(0, 1fr) auto;
    align-items: start;
  }
}

.row-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-2);
}

/* --- tabele ------------------------------------------------------------------------- */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.5;
}

.table th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 16px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.table td {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.table tr:last-child td {
  border-bottom: 0;
}

.table .right {
  text-align: right;
}

.table tbody tr {
  transition: background-color var(--duration-default) var(--ease-default);
}

.table tbody tr:hover {
  background: color-mix(in oklab, var(--muted) 40%, transparent);
}

/* --- przyciski ------------------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1-5);
  height: 2rem;
  padding: 0 var(--space-2-5);
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
  background: transparent;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  transition: all var(--duration-default) var(--ease-default);
}

.btn:active {
  transform: translateY(1px);
}

.btn:focus-visible {
  outline: none;
  border-color: var(--ring);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--ring) 50%, transparent);
}

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.5;
  pointer-events: none;
}

.btn-default {
  background: var(--primary);
  color: var(--primary-foreground);
}

.btn-default:hover {
  background: color-mix(in oklab, var(--primary) 80%, transparent);
}

.btn-outline {
  border-color: var(--border);
  background: var(--background);
  color: var(--foreground);
}

.btn-outline:hover {
  background: var(--muted);
}

.btn-secondary {
  background: var(--secondary);
  color: var(--secondary-foreground);
}

.btn-secondary:hover {
  background: color-mix(in oklab, var(--secondary) 80%, transparent);
}

.btn-ghost {
  color: var(--foreground);
}

.btn-ghost:hover {
  background: var(--muted);
}

.btn-destructive {
  background: color-mix(in oklab, var(--destructive) 10%, transparent);
  color: var(--destructive);
}

.btn-destructive:hover {
  background: color-mix(in oklab, var(--destructive) 20%, transparent);
}

.btn-link {
  color: var(--primary);
  height: auto;
  padding: 0;
  text-underline-offset: 4px;
}

.btn-link:hover {
  text-decoration: underline;
}

.btn-sm {
  height: 1.75rem;
  gap: var(--space-1);
  font-size: 0.8rem;
  border-radius: var(--radius-md);
}

.btn-lg {
  height: 2.25rem;
  padding: 0 var(--space-4);
}

/* Jedyne główne wezwanie do działania w widoku (CtaLink). */
.cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2-5) var(--space-5);
  border-radius: var(--radius-md);
  border: 0;
  background: var(--primary);
  color: var(--primary-foreground);
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  cursor: pointer;
  transition: transform var(--duration-base) var(--ease-out), opacity var(--duration-base) var(--ease-out),
    box-shadow var(--duration-base) var(--ease-out);
}

.cta .icon {
  transition: transform var(--duration-base) var(--ease-out);
}

.cta:hover {
  transform: translateY(-2px);
  opacity: 0.9;
  box-shadow: var(--shadow-cta-hover);
}

.cta:hover .icon-nudge {
  transform: translate(2px, -2px);
}

.cta:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--ring) 50%, transparent);
}

/* Link wychodzący (np. do faktury w inFakt): ArrowUpRight oznacza każde wyjście ze strony. */
.ext-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-weight: 500;
  color: var(--foreground);
  text-decoration: underline;
  text-decoration-color: color-mix(in oklab, var(--muted-foreground) 50%, transparent);
  text-underline-offset: 4px;
  transition: text-decoration-color var(--duration-default) var(--ease-default);
}

.ext-link .icon {
  color: var(--muted-foreground);
  transition: transform var(--duration-base) var(--ease-out), color var(--duration-default) var(--ease-default);
}

.ext-link:hover {
  text-decoration-color: var(--foreground);
}

.ext-link:hover .icon {
  color: var(--foreground);
  transform: translate(2px, -2px);
}

form.inline {
  display: inline;
}

/* --- tagi i statusy ------------------------------------------------------------------- */

.tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1-5);
  border-radius: var(--radius-full);
  background: var(--secondary);
  padding: var(--space-1) var(--space-3);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 16px;
  color: var(--secondary-foreground);
  white-space: nowrap;
}

/* Statusy wymagające uwagi: obrys zamiast koloru (system nie ma czerwieni). */
.tag-strong {
  background: var(--background);
  box-shadow: inset 0 0 0 1px var(--foreground);
  font-weight: 500;
}

.tag-outline {
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--border);
  color: var(--muted-foreground);
}

/* --- komunikaty ------------------------------------------------------------------------ */

.messages {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
}

.notice {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  padding: var(--space-4) var(--space-5);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--card);
  font-size: 14px;
  line-height: 1.625;
}

.notice .icon {
  margin-top: 3px;
}

.notice-strong {
  border-color: var(--foreground);
}

.notice p + p {
  margin-top: var(--space-1);
}

.empty {
  padding: var(--space-8);
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
}

.empty .lead {
  margin: var(--space-2) auto var(--space-5);
  max-width: var(--measure-text);
}

/* --- formularze ------------------------------------------------------------------------ */

.form-grid {
  display: grid;
  gap: var(--space-4) var(--space-5);
}

@media (min-width: 640px) {
  .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .form-grid .span-2 {
    grid-column: span 2;
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: var(--space-1-5);
  min-width: 0;
}

.field > label,
.label {
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  color: var(--foreground);
}

.help {
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted-foreground);
}

.error {
  display: flex;
  gap: var(--space-1-5);
  align-items: flex-start;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 500;
  color: var(--destructive);
}

.error .icon {
  margin-top: 2px;
}

.input,
.field input[type="text"],
.field input[type="password"],
.field input[type="number"],
.field input[type="date"],
.field input[type="email"],
.field select,
.field textarea {
  width: 100%;
  min-height: 2.25rem;
  padding: var(--space-1-5) var(--space-3);
  border: 1px solid var(--muted-foreground);
  border-radius: var(--radius-lg);
  background: var(--background);
  color: var(--foreground);
  font-size: 14px;
  line-height: 20px;
  transition: border-color var(--duration-default) var(--ease-default), box-shadow var(--duration-default) var(--ease-default);
}

.field textarea {
  resize: vertical;
  line-height: 1.5;
}

.field textarea.mono-input {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
}

.field select {
  appearance: none;
  padding-right: var(--space-8);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23929292' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-2-5) center;
  background-size: 1rem;
}

.field input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(1);
  opacity: 0.6;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: var(--foreground);
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible,
.input:focus-visible {
  outline: none;
  border-color: var(--ring);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--ring) 50%, transparent);
}

.field.invalid input,
.field.invalid select,
.field.invalid textarea {
  border-color: var(--destructive);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--destructive) 20%, transparent);
}

fieldset {
  margin: 0;
  padding: 0;
  min-width: 0;
}

legend {
  padding: 0;
}

.form-section {
  padding: var(--space-6);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.form-section > legend {
  float: left;
  width: 100%;
  margin-bottom: var(--space-5);
}

.form-section > legend ~ * {
  clear: both;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-8);
}

/* Checkbox według komponentu design systemu. */
.cb {
  position: relative;
  display: inline-flex;
  align-items: flex-start;
  gap: var(--space-3);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.cb input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  pointer-events: none;
}

.cb .box {
  position: relative;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: var(--space-6);
  height: var(--space-6);
  border: 1.5px solid var(--muted-foreground);
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--primary-foreground);
  transition: background-color var(--duration-fast) var(--ease-out), border-color var(--duration-fast) var(--ease-out),
    box-shadow var(--duration-fast) var(--ease-out), transform var(--duration-default) var(--ease-out);
}

.cb .box svg {
  position: absolute;
  width: 1rem;
  height: 1rem;
  overflow: visible;
}

.cb .box path {
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset var(--duration-default) var(--ease-default);
}

.cb:hover .box {
  border-color: var(--foreground);
}

.cb:active .box {
  transform: scale(0.92);
}

.cb input:checked + .box {
  background: var(--primary);
  border-color: var(--primary);
}

.cb input:checked + .box .tick {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset var(--duration-base) var(--ease-out) 60ms;
}

.cb.pop input:checked + .box {
  animation: cb-pop var(--duration-base) var(--ease-out);
}

@keyframes cb-pop {
  from {
    transform: scale(0.85);
  }

  to {
    transform: scale(1);
  }
}

.cb input:focus-visible + .box {
  border-color: var(--ring);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--ring) 50%, transparent);
}

.cb:has(input:disabled) {
  cursor: not-allowed;
  opacity: 0.5;
}

.cb .txt {
  display: flex;
  flex-direction: column;
}

.cb .cb-label {
  font-size: 15px;
  line-height: 24px;
  font-weight: 500;
  color: var(--foreground);
}

/* --- pozycje faktury (formset) --------------------------------------------------------- */

.service {
  position: relative;
  padding: var(--space-5);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--background);
}

.service + .service {
  margin-top: var(--space-3);
}

.service-grid {
  display: grid;
  gap: var(--space-3) var(--space-4);
}

@media (min-width: 640px) {
  .service-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .service-grid .span-4 {
    grid-column: span 4;
  }

  .service-grid .span-2 {
    grid-column: span 2;
  }
}

.service-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-4);
}

.service.is-deleted {
  opacity: 0.5;
}

details.more {
  margin-top: var(--space-3);
}

details.more > summary {
  cursor: pointer;
  font-size: 13px;
  color: var(--muted-foreground);
  list-style: none;
}

details.more > summary::-webkit-details-marker {
  display: none;
}

details.more > summary:hover {
  color: var(--foreground);
}

details.more[open] > summary {
  margin-bottom: var(--space-3);
}

/* --- paginacja ------------------------------------------------------------------------ */

.pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-top: var(--space-4);
}

/* --- logowanie --------------------------------------------------------------------------- */

.login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: var(--space-6) var(--space-4);
}

.login-card {
  width: 100%;
  max-width: 24rem;
}

.login .brand {
  margin-bottom: var(--space-8);
}

/* --- ruch --------------------------------------------------------------------------------- */

@keyframes enter {
  from {
    opacity: 0;
    transform: translateY(1rem);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.main > * {
  animation: enter var(--duration-enter) var(--ease-out) both;
}

.main > *:nth-child(2) {
  animation-delay: 80ms;
}

.main > *:nth-child(3) {
  animation-delay: 160ms;
}

.main > *:nth-child(n + 4) {
  animation-delay: 240ms;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
