@media screen {
  :root {
    --renta-canvas: #f4f5f8;
    --renta-surface: #fff;
    --renta-ink: #182137;
    --renta-muted: #52617a;
    --renta-line: #dce2ec;
    --renta-soft: #eef2f8;
    --renta-sidebar: #171f31;
    --renta-action: #ffdb57;
    --renta-action-hover: #ffcf38;
    --renta-focus: #315fbd;
    --renta-radius: 13px;
    --renta-shadow: 0 2px 7px #1727470b, 0 1px 2px #17274706;
    --renta-motion: 150ms cubic-bezier(.2, .65, .25, 1);
  }

  html[data-rnx] body.renta-app {
    --rnx-canvas: var(--renta-canvas);
    --rnx-ink: var(--renta-ink);
    --rnx-muted: var(--renta-muted);
    --rnx-line: var(--renta-line);
    --rnx-yellow: var(--renta-action);
    background: var(--renta-canvas);
  }

  html[data-rnx] body.renta-app .rnx-shell > .side {
    background: var(--renta-sidebar);
    color: #edf2fc;
    border-inline-end: 1px solid #26324d;
  }

  html[data-rnx] .rnx-shell > .side .nav a {
    border-radius: 8px;
    transition: background-color var(--renta-motion), color var(--renta-motion);
  }

  html[data-rnx] .rnx-shell > .side .nav a.active {
    color: #ffe886;
    background: #3a3528;
    box-shadow: inset 3px 0 #ffdb57;
  }

  html[data-rnx] .rnx-content .rnx-topbar {
    border: 1px solid var(--renta-line);
    border-radius: var(--renta-radius);
    background: var(--renta-surface);
    box-shadow: var(--renta-shadow);
  }

  html[data-rnx] .rnx-content > .rnx-section-heading {
    align-items: center;
    gap: 8px 16px;
  }

  html[data-rnx] .rnx-section-heading h1 {
    font-weight: 750;
    letter-spacing: -.025em;
    text-wrap: balance;
  }

  html[data-rnx] :is(.rnx-content .page-body, .rnx-page-window) .card,
  body:is(.renta-admin, .renta-auth, .renta-customer) .card {
    border-color: var(--renta-line);
    border-radius: var(--renta-radius);
    box-shadow: var(--renta-shadow);
  }

  html[data-rnx] .rnx-content .dashboard-kpis .dashboard-kpi {
    border: 1px solid var(--renta-line);
    border-radius: var(--renta-radius);
    background: var(--renta-surface);
    box-shadow: var(--renta-shadow);
  }

  html[data-rnx] .rnx-content .dashboard-kpis .dashboard-kpi strong {
    color: var(--renta-ink);
    font-size: clamp(19px, 1.55vw, 25px);
    font-variant-numeric: tabular-nums;
    letter-spacing: -.03em;
  }

  html[data-rnx] .rnx-content .dashboard-kpis .dashboard-kpi-link:hover {
    border-color: #c9a83a;
    box-shadow: 0 0 0 1px #c9a83a;
  }

  html[data-rnx] .rnx-content .dashboard-actions .dash-action {
    border-radius: 9px;
  }

  html[data-rnx] .rnx-content :is(.section-head, .toolbar, .header-actions) {
    column-gap: 10px;
    row-gap: 8px;
  }

  html[data-rnx] .rnx-content :is(.table-wrap, .tpl-table-scroll) {
    border-radius: 9px;
  }

  html[data-rnx] .rnx-content :is(.table-wrap, .tpl-table-scroll) thead th {
    color: var(--renta-muted);
    background: #f0f3f8;
    font-weight: 650;
  }

  html[data-rnx] .rnx-content :is(.table-wrap, .tpl-table-scroll) tbody tr:focus-within > td {
    background-color: #edf3ff;
  }

  html[data-rnx] .rnx-content :is(.money, .rnx-rental-facts, .badge),
  body.renta-admin .stats {
    font-variant-numeric: tabular-nums;
  }

  html[data-rnx] .rnx-content .badge {
    border-radius: 6px;
  }

  html[data-rnx] .rnx-content :is(.btn, .global-search input),
  body:is(.renta-auth, .renta-admin, .renta-customer) .btn {
    border-radius: 8px;
  }

  html[data-rnx] .rnx-content :is(.btn, button):not(:disabled),
  body:is(.renta-auth, .renta-admin, .renta-customer) .btn,
  .rc-public.rc-motion .rc-button,
  .site-index :is(.site-primary, .site-login) {
    transition: background-color var(--renta-motion), border-color var(--renta-motion),
                box-shadow var(--renta-motion), color var(--renta-motion);
  }

  html[data-rnx] .rnx-content :is(.btn.primary, .rnx-create > summary):hover {
    background-color: var(--renta-action-hover);
  }

  html[data-rnx] .rnx-content :is(input, select, textarea):focus-visible,
  body:is(.renta-auth, .renta-admin, .renta-customer, .rc-public, .site-index)
    :is(a, button, input, select, textarea, summary):focus-visible {
    outline: 2px solid var(--renta-focus);
    outline-offset: 2px;
  }

  html[data-rnx] .rnx-shell > .side :focus-visible {
    outline-color: #ffdc66;
  }

  body:is(.renta-auth, .renta-admin, .renta-customer) {
    --rnx-canvas: var(--renta-canvas);
    --rnx-line: var(--renta-line);
  }

  :is(.site-index, .rc-public) :is(.site-preview, .site-plan, .rc-product, .rc-booking) {
    border-radius: var(--renta-radius);
  }

  html[data-rnx] dialog:not(.manager-lock-dialog),
  body:is(.renta-app, .renta-auth, .renta-admin, .renta-customer, .rc-public) dialog:not(.manager-lock-dialog) {
    border-radius: var(--renta-radius);
  }

  @keyframes renta-panel-in {
    from { opacity: 0; translate: 0 5px; }
    to { opacity: 1; translate: 0 0; }
  }

  @media (prefers-reduced-motion: no-preference) {
    html[data-rnx] dialog[open]:not(.manager-lock-dialog),
    body:is(.renta-app, .renta-auth, .renta-admin, .renta-customer, .rc-public.rc-motion)
      dialog[open]:not(.manager-lock-dialog),
    html[data-rnx] .rnx-create[open] > :not(summary) {
      animation: renta-panel-in 145ms ease-out both;
    }
  }

  @media (prefers-reduced-motion: reduce) {
    html[data-rnx] .rnx-content :is(.btn, button),
    html[data-rnx] .rnx-shell > .side .nav a,
    body:is(.renta-auth, .renta-admin, .renta-customer) .btn,
    .rc-public.rc-motion .rc-button,
    .site-index :is(.site-primary, .site-login) {
      transition: none;
    }
  }
}
