/**
 * Zwarta gęstość UI tenant.
 */

/* --- Header --- */
body.layout-app.app-density-compact-v1 .app-header {
    padding: 0.4rem 0.65rem;
    gap: 0.35rem;
}

body.layout-app.app-density-compact-v1 .brand {
    gap: 0.45rem;
}

body.layout-app.app-density-compact-v1 .brand__mark,
body.layout-app.app-density-compact-v1 .brand--compact .brand__mark {
    width: 28px;
    height: 28px;
}

body.layout-app.app-density-compact-v1 .brand__tenant,
body.layout-app.app-density-compact-v1 .brand--compact .brand__tenant {
    font-size: 0.8rem;
}

body.layout-app.app-density-compact-v1 .btn--sm {
    padding: 0.28rem 0.5rem;
    font-size: 0.76rem;
}

body.layout-app.app-density-compact-v1 .locale-switcher {
    font-size: 0.72rem;
}

body.layout-app.app-density-compact-v1.schedule-flat-banners-v1 .app-header {
    padding: 0.35rem 0.6rem;
    gap: 0.35rem 0.5rem;
}

body.layout-app.app-density-compact-v1.schedule-flat-banners-v1 .app-header__status .trial-banner {
    font-size: 0.68rem;
    padding: 0.22rem 0.5rem;
}

/* --- Rail + drawer --- */
body.layout-app.app-density-compact-v1.app-nav-rail-v1 {
    --nav-rail-width: 52px;
}

body.layout-app.app-density-compact-v1 .app-nav-rail {
    padding: 0.4rem 0.25rem;
    gap: 0.25rem;
}

body.layout-app.app-density-compact-v1 .nav-rail__btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
}

body.layout-app.app-density-compact-v1 .nav-rail__icon {
    width: 18px;
    height: 18px;
}

body.layout-app.app-density-compact-v1 .nav-drawer__panel {
    width: min(272px, calc(100vw - 2.5rem));
}

body.layout-app.app-density-compact-v1 .nav-drawer__header {
    padding: 0.55rem 0.65rem;
}

body.layout-app.app-density-compact-v1 .nav-drawer__title {
    font-size: 0.82rem;
}

body.layout-app.app-density-compact-v1 .nav-drawer__body {
    padding: 0.55rem 0.5rem 1rem;
}

body.layout-app.app-density-compact-v1 .sidebar-section {
    margin-bottom: 0.55rem;
}

body.layout-app.app-density-compact-v1 .sidebar-section__toggle {
    padding: 0.15rem 0.35rem 0.25rem;
    border-radius: 6px;
}

body.layout-app.app-density-compact-v1 .sidebar-section__label {
    font-size: 0.66rem;
    padding: 0;
}

body.layout-app.app-density-compact-v1 .sidebar-section__chevron {
    width: 0.45rem;
    height: 0.45rem;
}

body.layout-app.app-density-compact-v1 .sidebar-section__items {
    margin: 0.05rem 0 0 0.15rem;
    padding: 0.05rem 0 0.05rem 0.55rem;
}

body.layout-app.app-density-compact-v1 .sidebar-link {
    padding: 0.35rem 0.5rem;
    font-size: 0.76rem;
    border-radius: 8px;
}

/* Legacy sidebar (bez rail) */
body.layout-app.app-density-compact-v1 .app-sidebar {
    padding: 0.75rem 0.55rem;
}

/* --- Admin i podstrony --- */
body.layout-app.app-density-compact-v1 .app-main,
body.layout-public.account-page-v1 {
    font-size: 0.8125rem;
    line-height: 1.45;
}

body.layout-app.app-density-compact-v1 .admin-page,
body.layout-public.account-page-v1 .admin-page {
    padding: 0.65rem 0.85rem 1.1rem;
}

body.layout-public.account-page-v1 .admin-page,
body.layout-app.account-page-v1 .admin-page {
    max-width: 48rem;
    margin: 0 auto;
}

body.layout-public.account-page-v1 .admin-page > .card,
body.layout-app.account-page-v1 .admin-page > .card {
    margin-bottom: 0.55rem;
}

body.layout-public.account-page-v1 .admin-page > .card:last-child,
body.layout-app.account-page-v1 .admin-page > .card:last-child {
    margin-bottom: 0;
}

body.layout-app.app-density-compact-v1 .admin-page h1,
body.layout-public.account-page-v1 .admin-page h1 {
    font-size: 1.05rem;
    margin-bottom: 0.55rem;
    line-height: 1.25;
}

body.layout-app.app-density-compact-v1 .admin-page h2,
body.layout-app.app-density-compact-v1 .table-card h2,
body.layout-app.app-density-compact-v1 .form-card h2,
body.layout-public.account-page-v1 .admin-page h2,
body.layout-public.account-page-v1 .table-card h2,
body.layout-public.account-page-v1 .form-card h2 {
    font-size: 0.88rem;
}

body.app-density-compact-v1 .admin-page h3,
body.app-density-compact-v1 .form-card h3 {
    font-size: 0.82rem;
    margin: 0.75rem 0 0.45rem;
    font-weight: 600;
}

body.layout-app.app-density-compact-v1 .page-intro,
body.layout-public.account-page-v1 .page-intro {
    font-size: 0.78rem;
    margin-bottom: 0.65rem;
    line-height: 1.45;
}

body.layout-app.app-density-compact-v1 .table-card,
body.layout-app.app-density-compact-v1 .form-card,
body.layout-app.app-density-compact-v1 .card,
body.layout-public.account-page-v1 .table-card,
body.layout-public.account-page-v1 .form-card,
body.layout-public.account-page-v1 .card {
    padding: 0.75rem 0.85rem;
    border-radius: 10px;
}

body.layout-app.app-density-compact-v1 .admin-grid,
body.layout-public.account-page-v1 .admin-grid {
    gap: 0.65rem;
}

body.layout-app.app-density-compact-v1 .data-table,
body.layout-public.account-page-v1 .data-table {
    font-size: 0.78rem;
}

body.layout-app.app-density-compact-v1 .data-table th,
body.layout-app.app-density-compact-v1 .data-table td,
body.layout-public.account-page-v1 .data-table th,
body.layout-public.account-page-v1 .data-table td {
    padding: 0.38rem 0.38rem;
}

body.layout-app.app-density-compact-v1 .data-table th,
body.layout-public.account-page-v1 .data-table th {
    font-size: 0.66rem;
}

body.layout-app.app-density-compact-v1 .data-table--compact th,
body.layout-app.app-density-compact-v1 .data-table--compact td,
body.layout-public.account-page-v1 .data-table--compact th,
body.layout-public.account-page-v1 .data-table--compact td {
    padding: 0.3rem 0.38rem;
    font-size: 0.74rem;
}

body.layout-app.app-density-compact-v1 .alert,
body.layout-public.account-page-v1 .alert {
    padding: 0.5rem 0.7rem;
    font-size: 0.78rem;
    margin-bottom: 0.6rem;
}

body.layout-app.app-density-compact-v1 .field label,
body.layout-public.account-page-v1 .field label {
    font-size: 0.76rem;
}

body.layout-app.app-density-compact-v1 .field input,
body.layout-app.app-density-compact-v1 .field select,
body.layout-app.app-density-compact-v1 .field textarea,
body.layout-app.app-density-compact-v1 .select,
body.layout-public.account-page-v1 .field input,
body.layout-public.account-page-v1 .field select,
body.layout-public.account-page-v1 .field textarea,
body.layout-public.account-page-v1 .select {
    padding: 0.38rem 0.55rem;
    font-size: 0.8rem;
}

body.layout-app.app-density-compact-v1 .btn,
body.layout-public.account-page-v1 .btn {
    padding: 0.42rem 0.8rem;
    font-size: 0.8rem;
}

body.layout-app.app-density-compact-v1 .view-switcher {
    gap: 0.3rem;
    padding-bottom: 0.4rem;
}

body.layout-app.app-density-compact-v1 .view-switcher__link {
    padding: 0.3rem 0.6rem;
    font-size: 0.76rem;
}

body.layout-app.app-density-compact-v1 .legal-content {
    font-size: 0.78rem;
    line-height: 1.5;
}

body.layout-app.app-density-compact-v1 .legal-content h2 {
    font-size: 0.9rem;
    margin: 1.1rem 0 0.45rem;
}

body.layout-app.app-density-compact-v1 .legal-content p,
body.layout-app.app-density-compact-v1 .legal-content li {
    font-size: 0.78rem;
}

/* Pomoc */
body.layout-app.app-density-compact-v1 .help-page .help-toc {
    margin-bottom: 0.65rem;
    padding: 0.65rem 0.85rem;
}

body.layout-app.app-density-compact-v1 .help-toc__title {
    font-size: 0.82rem;
    margin-bottom: 0.5rem;
}

body.layout-app.app-density-compact-v1 .help-toc__list {
    gap: 0.25rem;
    font-size: 0.76rem;
}

body.layout-app.app-density-compact-v1 .help-content {
    padding: 0.85rem 1rem 1.25rem;
    line-height: 1.45;
    font-size: 0.78rem;
}

body.layout-app.app-density-compact-v1 .help-content h2 {
    margin: 1.25rem 0 0.5rem;
    font-size: 0.92rem;
    padding-bottom: 0.25rem;
}

body.layout-app.app-density-compact-v1 .help-content h3 {
    margin: 0.85rem 0 0.35rem;
    font-size: 0.84rem;
}

body.layout-app.app-density-compact-v1 .help-content h4 {
    margin: 0.65rem 0 0.3rem;
    font-size: 0.8rem;
}

body.layout-app.app-density-compact-v1 .help-content p,
body.layout-app.app-density-compact-v1 .help-content li {
    font-size: 0.78rem;
    margin-bottom: 0.55rem;
}

body.layout-app.app-density-compact-v1 .help-content code {
    font-size: 0.72em;
}

body.layout-app.app-density-compact-v1 .help-table {
    font-size: 0.74rem;
    margin: 0.5rem 0 0.7rem;
}

body.layout-app.app-density-compact-v1 .help-table th,
body.layout-app.app-density-compact-v1 .help-table td {
    padding: 0.32rem 0.45rem;
}

body.layout-app.app-density-compact-v1 .detail-list {
    font-size: 0.78rem;
    gap: 0.35rem 0.75rem;
}

body.layout-app.app-density-compact-v1 .detail-list dt {
    font-size: 0.74rem;
}

body.layout-app.app-density-compact-v1 .section-title {
    font-size: 0.88rem;
    margin: 1.1rem 0 0.5rem;
}

body.app-density-compact-v1 .field-hint,
body.app-density-compact-v1 .form-hint {
    font-size: 0.74rem;
    line-height: 1.4;
}

body.app-density-compact-v1 .data-dl {
    margin: 0.5rem 0 0;
    display: grid;
    gap: 0.45rem 0.75rem;
    font-size: 0.78rem;
}

body.app-density-compact-v1 .data-dl dt {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--color-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

body.app-density-compact-v1 .data-dl dd {
    margin: 0.1rem 0 0;
    font-size: 0.8rem;
}

body.app-density-compact-v1 .data-dl code {
    font-size: 0.76rem;
}

body.app-density-compact-v1 .form-card .form-card,
body.app-density-compact-v1 .form-card--nested {
    margin-top: 0.75rem;
    padding: 0.65rem 0.75rem;
    background: #f8faf9;
    box-shadow: none;
}

body.app-density-compact-v1 .form-card--wide {
    max-width: 720px;
}

body.layout-app.app-density-compact-v1 .admin-page > #dane-faktury.form-card--wide {
    max-width: none;
    margin-bottom: 0.85rem;
}

body.layout-app.app-density-compact-v1 .plan-account-grid {
    gap: 0.85rem;
    margin-bottom: 1rem;
}

body.app-density-compact-v1 .kpi-card {
    padding: 0.75rem 0.85rem;
}

body.layout-app.app-density-compact-v1 .kpi-card__label {
    font-size: 0.66rem;
}

body.layout-app.app-density-compact-v1 .kpi-card__value {
    font-size: 1.35rem;
}

body.layout-app.app-density-compact-v1 .kpi-card__hint,
body.layout-app.app-density-compact-v1 .kpi-bar__head {
    font-size: 0.76rem;
}

body.layout-app.app-density-compact-v1 .status-badge {
    font-size: 0.66rem;
    padding: 0.12rem 0.35rem;
}

/* --- Harmonogram dzienny --- */
body.app-density-compact-v1.schedule-workspace-v1 .schedule-page {
    padding: 0.3rem 0.5rem 0.45rem;
}

body.app-density-compact-v1 .schedule-page {
    padding: 0.65rem 0.85rem 1.25rem;
}

body.app-density-compact-v1 .schedule-board-wrapper {
    border-radius: 10px;
}

body.app-density-compact-v1 .schedule-board-wrapper::-webkit-scrollbar {
    height: 9px;
}

body.app-density-compact-v1 .schedule-head .gate-label,
body.app-density-compact-v1 .gate-cell {
    width: 158px;
    flex: 0 0 158px;
}

body.app-density-compact-v1 .schedule-head .time-cell,
body.app-density-compact-v1 .schedule-head .gate-label {
    padding: 0.32rem 0.3rem;
    font-size: 0.62rem;
}

body.app-density-compact-v1 .schedule-head .gate-label {
    padding-left: 0.55rem;
}

body.app-density-compact-v1 .gate-cell {
    padding: 0.42rem 0.55rem;
    min-height: var(--row-height, 58px);
    height: var(--row-height, 58px);
}

body.app-density-compact-v1 .gate-cell__name {
    font-size: 0.74rem;
}

body.app-density-compact-v1 .gate-cell__meta {
    font-size: 0.62rem;
    margin-top: 0;
}

body.app-density-compact-v1 .slot-cell {
    min-height: var(--row-height, 58px);
    height: var(--row-height, 58px);
}

body.app-density-compact-v1 .appointment-card {
    border-radius: 6px;
    padding: 0.18rem 0.28rem 0.24rem;
    gap: 0.08rem;
    min-width: 36px;
    box-shadow: 0 1px 6px rgba(22, 163, 74, 0.12);
}

body.app-density-compact-v1 .appointment-card[data-type="unloading"] {
    box-shadow: 0 1px 6px rgba(14, 165, 233, 0.1);
}

body.app-density-compact-v1 .appointment-card__status {
    padding: 0.06rem 0.24rem;
    font-size: 0.5rem;
    border-radius: 3px;
}

body.app-density-compact-v1 .appointment-card__time {
    font-size: 0.46rem;
}

body.app-density-compact-v1 .appointment-card__title {
    font-size: 0.66rem;
    line-height: 1.12;
}

body.app-density-compact-v1 .appointment-card__contact {
    font-size: 0.56rem;
}

@container (max-width: 68px) {
    body.app-density-compact-v1 .appointment-card__status-full {
        display: none;
    }

    body.app-density-compact-v1 .appointment-card__status-short {
        display: inline;
    }
}

body.app-density-compact-v1.schedule-workspace-v1 .schedule-command-bar {
    gap: 0.3rem 0.45rem;
    padding: 0.3rem 0.45rem;
    margin-bottom: 0.3rem;
    border-radius: 9px;
}

body.app-density-compact-v1.schedule-workspace-v1 .view-switcher--compact .view-switcher__link {
    padding: 0.24rem 0.5rem;
    font-size: 0.72rem;
}

body.app-density-compact-v1.schedule-workspace-v1 .schedule-date-picker--compact {
    min-width: 7.75rem;
    font-size: 0.76rem;
    padding: 0.24rem 0.38rem;
}

body.app-density-compact-v1.schedule-workspace-v1 .select--compact {
    max-width: 10rem;
    padding: 0.24rem 0.4rem;
    font-size: 0.76rem;
}

body.app-density-compact-v1.schedule-workspace-v1 .schedule-command-bar .schedule-search__input {
    padding: 0.24rem 0.4rem 0.24rem 1.45rem;
    font-size: 0.76rem;
}

body.app-density-compact-v1.schedule-workspace-v1 .schedule-chip {
    padding: 0.12rem 0.32rem;
    font-size: 0.68rem;
}

body.app-density-compact-v1.schedule-workspace-v1 .schedule-command-bar .btn--sm {
    padding: 0.28rem 0.55rem;
    font-size: 0.76rem;
}

body.app-density-compact-v1 .schedule-toolbar {
    gap: 0.65rem;
    margin-bottom: 0.65rem;
}

body.app-density-compact-v1 .schedule-date-picker {
    min-width: 9rem;
    font-size: 0.88rem;
}

body.app-density-compact-v1 .schedule-legend {
    font-size: 0.8rem;
    gap: 0.65rem 1rem;
    margin-bottom: 0.55rem;
}

body.app-density-compact-v1 .schedule-search__input {
    font-size: 0.8rem;
    padding: 0.35rem 0.5rem;
}

/* Widok tygodnia */
body.app-density-compact-v1 .week-board {
    min-width: 52rem;
}

body.app-density-compact-v1 .week-board th,
body.app-density-compact-v1 .week-board td {
    padding: 0.35rem;
    font-size: 0.78rem;
}

body.app-density-compact-v1 .week-board th {
    font-size: 0.72rem;
}

body.app-density-compact-v1 .week-gate {
    font-size: 0.76rem;
}

body.app-density-compact-v1 .week-cell {
    min-width: 6.5rem;
    min-height: 3.25rem;
}

body.app-density-compact-v1 .week-slot {
    padding: 0.28rem 0.35rem;
    font-size: 0.68rem;
    margin-bottom: 0.28rem;
    border-radius: 6px;
}

body.app-density-compact-v1.schedule-workspace-v1 .week-board-wrapper {
    border-radius: 10px;
}

/* Live feed */
body.app-density-compact-v1 .schedule-live-feed {
    margin-top: 0.4rem;
    border-radius: 9px;
}

body.app-density-compact-v1.schedule-workspace-v1 .schedule-live-feed {
    max-height: min(22vh, 180px);
    margin-top: 0.3rem;
}

body.app-density-compact-v1 .schedule-live-feed__title {
    padding: 0.34rem 0.55rem;
    font-size: 0.62rem;
}

body.app-density-compact-v1 .schedule-live-feed__group-label {
    padding: 0.2rem 0.55rem;
    font-size: 0.58rem;
}

body.app-density-compact-v1 .schedule-live-feed__group-list {
    max-height: 5rem;
}

body.app-density-compact-v1 .schedule-live-feed__item {
    padding: 0.32rem 0.55rem;
    font-size: 0.72rem;
    line-height: 1.25;
}

/* --- Strona główna (layout public) --- */
body.layout-public.landing-page-v1 {
    font-size: 0.8125rem;
    line-height: 1.45;
}

body.layout-public.landing-page-v1 .topbar__inner,
body.layout-public.landing-page-v1 .footer__inner {
    min-height: 52px;
}

body.layout-public.landing-page-v1 .brand__mark {
    width: 28px;
    height: 28px;
}

body.layout-public.landing-page-v1 .nav a:not(.btn) {
    font-size: 0.8rem;
}

body.layout-public.landing-page-v1 .btn {
    padding: 0.42rem 0.8rem;
    font-size: 0.8rem;
}

body.layout-public.landing-page-v1 .btn--lg {
    padding: 0.48rem 0.95rem;
    font-size: 0.8rem;
}

body.layout-public.landing-page-v1 .hero {
    padding: 1.75rem 0 1.25rem;
}

body.layout-public.landing-page-v1 .hero h1 {
    font-size: 1.35rem;
    line-height: 1.25;
    margin: 0.4rem 0 0.65rem;
}

body.layout-public.landing-page-v1 .eyebrow {
    font-size: 0.68rem;
}

body.layout-public.landing-page-v1 .lead {
    font-size: 0.85rem;
    max-width: 34rem;
}

body.layout-public.landing-page-v1 .hero__actions {
    margin-top: 1rem;
    gap: 0.55rem;
}

body.layout-public.landing-page-v1 .features {
    padding: 0.5rem 0 2.5rem;
}

body.layout-public.landing-page-v1 .feature-card {
    padding: 0.75rem 0.85rem;
}

body.layout-public.landing-page-v1 .feature-card h3 {
    font-size: 0.88rem;
    margin-bottom: 0.35rem;
}

body.layout-public.landing-page-v1 .feature-card p {
    font-size: 0.78rem;
    color: var(--color-muted);
    margin: 0;
    line-height: 1.45;
}

body.layout-public.landing-page-v1 .preview-row span {
    font-size: 0.72rem;
}

body.layout-public.landing-page-v1 .preview-card {
    padding: 0.75rem;
    border-radius: 16px;
}

body.layout-public.landing-page-v1 .slot {
    height: 22px;
}

body.layout-public.landing-page-v1 .page-header {
    padding: 1.75rem 0 0.65rem;
}

body.layout-public.landing-page-v1 .page-header h1 {
    font-size: 1.35rem;
    line-height: 1.25;
    margin: 0 0 0.45rem;
}

body.layout-public.landing-page-v1 .page-header p {
    font-size: 0.85rem;
    color: var(--color-muted);
    margin: 0;
    max-width: 34rem;
    line-height: 1.45;
}

body.layout-public.landing-page-v1 .pricing {
    padding-bottom: 2.5rem;
}

body.layout-public.landing-page-v1 .pricing-card {
    padding: 0.75rem 0.85rem;
}

body.layout-public.landing-page-v1 .pricing-card h2 {
    font-size: 0.88rem;
    margin-bottom: 0.35rem;
}

body.layout-public.landing-page-v1 .pricing-card__price strong {
    font-size: 1.35rem;
}

body.layout-public.landing-page-v1 .pricing-card__price span {
    font-size: 0.78rem;
}

body.layout-public.landing-page-v1 .pricing-card__features {
    font-size: 0.78rem;
    margin: 0.65rem 0 0.85rem;
}

body.layout-public.landing-page-v1 .pricing-card__features li {
    padding: 0.22rem 0;
}

body.layout-public.landing-page-v1 .legal-meta {
    font-size: 0.72rem;
    margin: 0 0 0.65rem;
}

body.layout-public.landing-page-v1 .legal-content {
    font-size: 0.78rem;
    line-height: 1.5;
    max-width: 42rem;
}

body.layout-public.landing-page-v1 .legal-lead {
    font-size: 0.82rem;
    color: var(--color-text);
}

body.layout-public.landing-page-v1 .legal-content h2 {
    font-size: 0.9rem;
    margin: 1.1rem 0 0.45rem;
    color: var(--color-text);
}

body.layout-public.landing-page-v1 .legal-content h2:first-child {
    margin-top: 0;
}

body.layout-public.landing-page-v1 .legal-content p,
body.layout-public.landing-page-v1 .legal-content li {
    font-size: 0.78rem;
    margin-bottom: 0.55rem;
}

body.layout-public.landing-page-v1 .legal-content ul,
body.layout-public.landing-page-v1 .legal-content ol {
    margin: 0 0 0.65rem;
    padding-left: 1.1rem;
}

body.layout-public.landing-page-v1 .legal-table {
    font-size: 0.74rem;
    margin: 0.65rem 0 0.85rem;
}

body.layout-public.landing-page-v1 .legal-table th,
body.layout-public.landing-page-v1 .legal-table td {
    padding: 0.32rem 0.45rem;
}

body.layout-public.landing-page-v1 .page-header .u-mt-2 {
    font-size: 0.78rem;
    margin-top: 1.25rem;
}

body.layout-public.landing-page-v1 .contact-details {
    margin: 0.85rem 0 1rem;
}

body.layout-public.landing-page-v1 .contact-details dt {
    font-size: 0.72rem;
    margin-top: 0.7rem;
}

body.layout-public.landing-page-v1 .contact-details dd {
    font-size: 0.82rem;
}

/* --- Logowanie / MFA (layout public + tenant) --- */
body.layout-public.auth-page-v1,
body.layout-app.auth-page-v1 {
    font-size: 0.8125rem;
    line-height: 1.45;
}

body.layout-public.auth-page-v1 .auth-page,
body.layout-app.auth-page-v1 .auth-page {
    padding: 1.35rem 0 1.75rem;
}

body.layout-public.auth-page-v1 .form-card,
body.layout-app.auth-page-v1 .form-card {
    padding: 0.85rem 1rem;
}

body.layout-public.auth-page-v1 .form-card h1,
body.layout-app.auth-page-v1 .form-card h1 {
    font-size: 1.05rem;
    margin: 0 0 0.55rem;
    line-height: 1.25;
}

body.layout-public.auth-page-v1 .auth-page__intro h1 {
    font-size: 1.15rem;
    line-height: 1.25;
    margin: 0 0 0.45rem;
}

body.layout-public.auth-page-v1 .auth-page__intro p {
    margin: 0;
    font-size: 0.8rem;
    color: var(--color-muted);
    line-height: 1.45;
    max-width: 22rem;
}

body.layout-public.auth-page-v1 .auth-page__grid {
    gap: 1.25rem;
    align-items: start;
}

body.layout-public.auth-page-v1 .form-grid {
    gap: 0.65rem;
}

body.layout-public.auth-page-v1 .input-prefix span,
body.layout-public.auth-page-v1 .input-prefix input {
    padding: 0.45rem 0.6rem;
    font-size: 0.8125rem;
}

body.layout-public.auth-page-v1 .field-error {
    font-size: 0.72rem;
}

body.layout-public.auth-page-v1 .checkbox-field label {
    font-size: 0.76rem;
    font-weight: 500;
    line-height: 1.4;
}

body.layout-public.auth-page-v1 .page-intro,
body.layout-app.auth-page-v1 .page-intro {
    font-size: 0.78rem;
    margin: 0 0 0.65rem;
}

body.layout-public.auth-page-v1 .field label,
body.layout-app.auth-page-v1 .field label {
    font-size: 0.75rem;
}

body.layout-public.auth-page-v1 .field input,
body.layout-public.auth-page-v1 .field select,
body.layout-public.auth-page-v1 .field textarea,
body.layout-app.auth-page-v1 .field input,
body.layout-app.auth-page-v1 .field select,
body.layout-app.auth-page-v1 .field textarea {
    padding: 0.45rem 0.6rem;
    font-size: 0.8125rem;
}

body.layout-public.auth-page-v1 .btn,
body.layout-app.auth-page-v1 .btn {
    padding: 0.45rem 0.75rem;
    font-size: 0.8125rem;
}

body.layout-public.auth-page-v1 .alert,
body.layout-app.auth-page-v1 .alert {
    padding: 0.45rem 0.6rem;
    font-size: 0.78rem;
    margin-bottom: 0.55rem;
}

body.layout-public.auth-page-v1 .field-hint,
body.layout-public.auth-page-v1 .form-hint,
body.layout-public.auth-page-v1 .form-footer,
body.layout-app.auth-page-v1 .field-hint,
body.layout-app.auth-page-v1 .form-hint,
body.layout-app.auth-page-v1 .form-footer {
    font-size: 0.72rem;
}

body.layout-public.auth-page-v1 .invite-page > p,
body.layout-app.auth-page-v1 .invite-page > p {
    font-size: 0.8125rem;
    margin: 0 0 0.5rem;
}

body.layout-public.auth-page-v1 .invite-trust,
body.layout-app.auth-page-v1 .invite-trust {
    margin: 0.75rem 0 1rem;
    padding: 0.65rem 0.75rem;
}

body.layout-public.auth-page-v1 .invite-trust__title,
body.layout-app.auth-page-v1 .invite-trust__title {
    font-size: 0.85rem;
}

body.layout-public.auth-page-v1 .invite-trust__warning,
body.layout-app.auth-page-v1 .invite-trust__warning {
    font-size: 0.72rem;
    line-height: 1.4;
}

body.layout-public.auth-page-v1 .setup-steps,
body.layout-app.auth-page-v1 .setup-steps {
    margin: 0 0 0.65rem 1rem;
    font-size: 0.78rem;
}

body.layout-public.auth-page-v1 .setup-steps li,
body.layout-app.auth-page-v1 .setup-steps li {
    margin-bottom: 0.3rem;
}

body.layout-public.auth-page-v1 .mfa-qr-wrap,
body.layout-app.auth-page-v1 .mfa-qr-wrap {
    margin: 0.75rem 0 0.65rem;
    gap: 0.35rem;
}

body.layout-public.auth-page-v1 .mfa-qr,
body.layout-app.auth-page-v1 .mfa-qr {
    padding: 0.45rem;
    border-radius: 8px;
}

body.layout-public.auth-page-v1 .mfa-qr img,
body.layout-public.auth-page-v1 .mfa-qr canvas,
body.layout-app.auth-page-v1 .mfa-qr img,
body.layout-app.auth-page-v1 .mfa-qr canvas {
    width: 176px !important;
    height: 176px !important;
}

body.layout-public.auth-page-v1 .input--mono,
body.layout-app.auth-page-v1 .input--mono {
    font-size: 0.78rem;
}

body.layout-public.auth-page-v1 .recovery-codes,
body.layout-app.auth-page-v1 .recovery-codes {
    margin: 0.5rem 0;
    gap: 0.35rem;
}

body.layout-public.auth-page-v1 .recovery-codes code,
body.layout-app.auth-page-v1 .recovery-codes code {
    padding: 0.28rem 0.4rem;
    font-size: 0.75rem;
}

body.layout-public.auth-page-v1 details.field summary,
body.layout-app.auth-page-v1 details.field summary {
    font-size: 0.78rem;
    cursor: pointer;
}

/* --- Panel platformy --- */
body.layout-platform.app-density-compact-v1 .brand__name {
    font-size: 0.85rem;
}

body.layout-platform.app-density-compact-v1 .app-header__right .btn {
    padding: 0.35rem 0.55rem;
    font-size: 0.78rem;
}

body.layout-platform.app-density-compact-v1 .user-pill {
    font-size: 0.76rem;
    padding: 0.28rem 0.55rem;
}

body.layout-platform.app-density-compact-v1 .platform-tabs {
    padding: 0 0.85rem;
}

body.layout-platform.app-density-compact-v1 .platform-tab {
    padding: 0.45rem 0.75rem;
    font-size: 0.78rem;
}

body.layout-platform.app-density-compact-v1 .app-main--platform {
    padding: 0;
}

body.layout-platform.app-density-compact-v1 .platform-db-cleanup-banner {
    margin: 0 0 0.65rem;
    padding: 0.55rem 0.75rem;
    font-size: 0.78rem;
}

body.layout-platform.app-density-compact-v1 .platform-db-cleanup-sql {
    margin: 0.45rem 0 0;
    padding: 0.45rem 0.6rem;
    font-size: 0.72rem;
}

body.layout-platform.app-density-compact-v1 .platform-tenant-cleanup-badge {
    font-size: 0.65rem;
    padding: 0.12rem 0.38rem;
}
