* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

:root {
    --bg: #0F172A;
    --bg-soft: #111C31;
    --bg-deep: #0B1220;
    --card: #1E293B;
    --card-soft: #22324A;
    --surface: #162033;
    --surface-alt: #122036;
    --border: #334155;
    --border-strong: #475569;
    --text: #E2E8F0;
    --muted: #94A3B8;
    --blue: #3B82F6;
    --green: #10B981;
    --red: #EF4444;
    --yellow: #F59E0B;
    --shadow-lg: 0 24px 52px rgba(2, 6, 23, 0.42);
    --shadow-md: 0 16px 34px rgba(2, 6, 23, 0.28);
    --shadow-sm: 0 10px 20px rgba(2, 6, 23, 0.16);
    --glow-blue-soft: 0 0 0 1px rgba(96, 165, 250, 0.16), 0 14px 34px rgba(37, 99, 235, 0.12);
    --glow-green-soft: 0 0 0 1px rgba(52, 211, 153, 0.14), 0 14px 32px rgba(5, 150, 105, 0.12);
    --glow-amber-soft: 0 0 0 1px rgba(251, 191, 36, 0.14), 0 14px 32px rgba(217, 119, 6, 0.12);
    --glow-red-soft: 0 0 0 1px rgba(248, 113, 113, 0.14), 0 14px 32px rgba(220, 38, 38, 0.12);
    --radius-xl: 24px;
    --radius-lg: 20px;
    --radius-md: 16px;
    --radius-sm: 14px;
    --page-max: 1180px;
    --page-pad: 16px;
    --nav-height: 92px;
    --ease-premium: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-snappy: cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

body {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    font-size: clamp(14px, 3.6vw, 16px);
    padding:
        calc(var(--page-pad) + env(safe-area-inset-top, 0px))
        calc(var(--page-pad) + env(safe-area-inset-right, 0px))
        calc(20px + env(safe-area-inset-bottom, 0px))
        calc(var(--page-pad) + env(safe-area-inset-left, 0px));
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(59, 130, 246, 0.22), transparent 26%),
        radial-gradient(circle at 85% 0%, rgba(16, 185, 129, 0.14), transparent 28%),
        linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
}

body.has-bottom-nav {
    padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px));
}

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

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

button {
    border: 0;
}

img,
svg {
    display: block;
    max-width: 100%;
}

.page {
    width: min(100%, var(--page-max));
    margin: 0 auto;
    animation: page-enter 0.34s var(--ease-premium) both;
}

@keyframes page-enter {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.995);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes card-enter {
    from {
        opacity: 0;
        transform: translateY(14px) scale(0.992);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes list-enter {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.app-shell,
.stack,
.list,
.vehicle-list,
.movement-list,
.history-day-list,
.history-list {
    display: grid;
    gap: 14px;
}

.page-narrow {
    max-width: 440px;
}

.page-medium {
    max-width: 760px;
}

.page-auth {
    min-height: calc(100vh - 180px);
    display: grid;
    place-items: center;
}

.card {
    position: relative;
    overflow: hidden;
    padding: 18px;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(71, 85, 105, 0.68);
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.96) 0%, rgba(18, 32, 54, 0.98) 100%);
    box-shadow: var(--shadow-lg);
    transition: transform 0.24s var(--ease-premium), box-shadow 0.24s var(--ease-premium), border-color 0.24s var(--ease-premium), background 0.24s var(--ease-premium), filter 0.24s var(--ease-premium);
    animation: card-enter 0.38s var(--ease-premium) both;
    will-change: transform, box-shadow;
}

.card::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, rgba(148, 163, 184, 0.22), transparent 65%);
    pointer-events: none;
}

.hero-card {
    padding: 20px;
}

.section-card {
    padding: 18px;
}

.section-head,
.section-headline {
    display: grid;
    gap: 8px;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: #7DD3FC;
    font-size: clamp(11px, 2.8vw, 13px);
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.section-label::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--blue);
    box-shadow: 0 0 0 6px rgba(59, 130, 246, 0.15);
}

.title {
    margin: 0;
    font-size: clamp(1.72rem, 5vw, 2.3rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.section-card h2,
.card h2 {
    margin: 0;
    font-size: clamp(1.22rem, 4vw, 1.45rem);
    line-height: 1.15;
}

.section-card h3,
.card h3 {
    margin: 0;
}

.subtitle,
.muted {
    margin: 0;
    color: var(--muted);
    font-size: clamp(14px, 3.7vw, 18px);
    line-height: 1.55;
}

.center {
    text-align: center;
}

.topbar {
    display: grid;
    gap: 16px;
}

.topbar-main,
.topbar-copy,
.app-topbar {
    display: grid;
    gap: 16px;
}

.hero-heading-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.hero-title-block {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.hero-subtitle {
    max-width: 28ch;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.info-pill {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(71, 85, 105, 0.62);
    background: rgba(11, 18, 32, 0.56);
    color: var(--text);
    font-size: clamp(12px, 3vw, 14px);
    font-weight: 600;
}

.menu {
    position: relative;
    justify-self: end;
}

.menu-toggle,
.btn,
.icon-btn,
.action-chip,
.action-chip-link {
    cursor: pointer;
    color: var(--text);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 16px;
    border: 1px solid rgba(71, 85, 105, 0.66);
    background: rgba(11, 18, 32, 0.72);
    box-shadow: var(--shadow-sm);
    font-size: 1.3rem;
    transition: transform 0.16s ease, filter 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.menu-gear {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    font-size: 1.55rem;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.9) 0%, rgba(11, 18, 32, 0.96) 100%);
}

.menu-gear:hover,
.menu-gear:focus-visible {
    border-color: rgba(59, 130, 246, 0.46);
    filter: brightness(1.06);
}

.menu-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 20;
    display: none;
    min-width: 240px;
    padding: 6px;
    border-radius: 20px;
    border: 1px solid rgba(71, 85, 105, 0.72);
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.98) 0%, rgba(11, 18, 32, 0.98) 100%);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.menu-dropdown.show {
    display: block;
}

.menu-dropdown a {
    display: block;
    padding: 12px 14px;
    border-radius: 14px;
    color: var(--text);
    font-size: 0.94rem;
    font-weight: 600;
}

.menu-dropdown a:hover,
.menu-dropdown a:focus-visible {
    background: rgba(59, 130, 246, 0.14);
    color: #FFFFFF;
}

.quick-actions,
.actions,
.form-row,
.two-columns,
.filter-grid,
.card-action-row,
.movement-actions {
    display: grid;
    gap: 10px;
}

.btn,
.action-chip,
.action-chip-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 46px;
    padding: 12px 16px;
    border-radius: 18px;
    font-size: clamp(14px, 3.5vw, 16px);
    font-weight: 800;
    letter-spacing: 0.01em;
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s var(--ease-snappy), filter 0.24s var(--ease-premium), border-color 0.24s var(--ease-premium), background 0.24s var(--ease-premium), box-shadow 0.24s var(--ease-premium), color 0.24s var(--ease-premium);
    transform-origin: center;
    will-change: transform, box-shadow;
}

.action-chip span[aria-hidden="true"] {
    font-size: 0.98rem;
    line-height: 1;
}

.btn,
.btn.primary,
.btn.btn-primary,
.action-chip.primary,
.action-chip-link.primary {
    border: 1px solid rgba(59, 130, 246, 0.45);
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.96) 0%, rgba(29, 78, 216, 0.96) 100%);
}

.btn.secondary,
.btn.btn-secondary,
.action-chip.secondary,
.action-chip-link.history {
    border: 1px solid rgba(71, 85, 105, 0.8);
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.98) 0%, rgba(15, 23, 42, 0.98) 100%);
}

.btn.success,
.action-chip.entry {
    border: 1px solid rgba(16, 185, 129, 0.48);
    background: linear-gradient(180deg, rgba(16, 185, 129, 0.98) 0%, rgba(5, 150, 105, 0.98) 100%);
}

.btn.warning,
.btn.btn-warning,
.action-chip.warning,
.action-chip-link.warning {
    color: #111827;
    border: 1px solid rgba(245, 158, 11, 0.5);
    background: linear-gradient(180deg, rgba(245, 158, 11, 0.98) 0%, rgba(217, 119, 6, 0.98) 100%);
}

.btn.danger,
.btn.btn-danger,
.action-chip.exit {
    border: 1px solid rgba(239, 68, 68, 0.44);
    background: linear-gradient(180deg, rgba(239, 68, 68, 0.98) 0%, rgba(220, 38, 38, 0.98) 100%);
}

.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    border: 1px solid rgba(71, 85, 105, 0.7);
    background: rgba(11, 18, 32, 0.74);
    transition: transform 0.2s var(--ease-snappy), filter 0.24s var(--ease-premium), border-color 0.24s var(--ease-premium), background 0.24s var(--ease-premium), box-shadow 0.24s var(--ease-premium);
    will-change: transform, box-shadow;
}

.btn:active,
.action-chip:active,
.action-chip-link:active,
.menu-toggle:active,
.icon-btn:active {
    transform: scale(0.98);
    opacity: 0.96;
    box-shadow: 0 8px 18px rgba(2, 6, 23, 0.18);
}

form {
    margin: 0;
}

.filter-panel {
    display: grid;
    gap: 12px;
    padding: 14px;
    border-radius: 20px;
    border: 1px solid rgba(71, 85, 105, 0.62);
    background: rgba(11, 18, 32, 0.46);
}

.filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(71, 85, 105, 0.72);
    background: rgba(11, 18, 32, 0.58);
    color: var(--muted);
    font-size: 0.84rem;
    font-weight: 800;
    transition: transform 0.18s var(--ease-snappy), background 0.2s var(--ease-premium), color 0.2s var(--ease-premium), border-color 0.2s var(--ease-premium), box-shadow 0.2s var(--ease-premium);
}

.filter-pill.active {
    border-color: rgba(59, 130, 246, 0.42);
    background: rgba(59, 130, 246, 0.18);
    color: #DBEAFE;
}

.filter-pill:active {
    transform: scale(0.98);
}

.filter-field {
    display: grid;
    gap: 6px;
}

.password-wrapper {
    position: relative;
}

.password-wrapper input {
    padding-right: 46px;
}

.password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.28);
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    opacity: 0.7;
    transition: color 0.2s ease, opacity 0.2s ease, transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    z-index: 1;
    -webkit-user-select: none;
    user-select: none;
    backdrop-filter: blur(8px);
}

.password-toggle:hover,
.password-toggle:focus-visible {
    opacity: 1;
    color: #60A5FA;
    transform: translateY(-50%) scale(1.1);
}

.password-toggle:active,
.password-toggle[aria-pressed="true"] {
    opacity: 1;
    background: rgba(59, 130, 246, 0.14);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.22);
}

.password-toggle .password-icon {
    width: 22px;
    height: 22px;
    pointer-events: none;
}

label {
    color: #CBD5E1;
    font-size: clamp(12px, 3vw, 14px);
    font-weight: 700;
}

input,
select,
textarea {
    width: 100%;
    min-height: 50px;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid rgba(71, 85, 105, 0.82);
    background: rgba(11, 18, 32, 0.82);
    color: var(--text);
    font-size: 16px;
    appearance: none;
    -webkit-appearance: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
    transition: border-color 0.24s var(--ease-premium), box-shadow 0.24s var(--ease-premium), background 0.24s var(--ease-premium), transform 0.18s var(--ease-snappy);
}

textarea {
    min-height: 110px;
    resize: vertical;
}

input::placeholder,
textarea::placeholder {
    color: #64748B;
}

input:focus,
select:focus,
textarea:focus {
    outline: 0;
    border-color: rgba(59, 130, 246, 0.88);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.16);
}

.stats {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stat {
    min-height: 96px;
    padding: 14px 12px;
    border-radius: 20px;
    border: 1px solid rgba(71, 85, 105, 0.58);
    background: linear-gradient(180deg, rgba(11, 18, 32, 0.88) 0%, rgba(15, 23, 42, 0.86) 100%);
    text-align: center;
    color: var(--muted);
    font-size: clamp(12px, 3vw, 14px);
    font-weight: 700;
    box-shadow: var(--shadow-sm);
    transition: transform 0.22s var(--ease-premium), box-shadow 0.22s var(--ease-premium), border-color 0.22s var(--ease-premium), background 0.22s var(--ease-premium);
    animation: list-enter 0.34s var(--ease-premium) both;
}

.stat strong {
    display: block;
    margin-top: 10px;
    font-size: clamp(1.55rem, 5vw, 2rem);
    line-height: 1;
    letter-spacing: -0.03em;
}

.stat.dentro {
    border-color: rgba(16, 185, 129, 0.38);
}

.stat.dentro strong {
    color: #34D399;
}

.stat.entrada {
    border-color: rgba(59, 130, 246, 0.38);
}

.stat.entrada strong {
    color: #60A5FA;
}

.stat.salida {
    border-color: rgba(239, 68, 68, 0.34);
}

.stat.salida strong {
    color: #F87171;
}

.list {
    gap: 12px;
}

.item {
    padding: 16px;
    border-radius: 20px;
    border: 1px solid rgba(71, 85, 105, 0.62);
    background: rgba(11, 18, 32, 0.5);
    transition: transform 0.22s var(--ease-premium), box-shadow 0.22s var(--ease-premium), border-color 0.22s var(--ease-premium), background 0.22s var(--ease-premium);
    animation: list-enter 0.34s var(--ease-premium) both;
}

.item strong {
    display: block;
    margin-bottom: 6px;
}

.vehicle-list,
.movement-list,
.history-day-list {
    gap: 12px;
}

.vehicle-card,
.movement-card,
.history-day-card {
    position: relative;
    overflow: hidden;
    padding: 14px;
    border-radius: 20px;
    border: 1px solid rgba(71, 85, 105, 0.62);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.72) 100%);
    box-shadow: var(--shadow-md);
    transition: transform 0.22s var(--ease-premium), box-shadow 0.22s var(--ease-premium), border-color 0.22s var(--ease-premium), background 0.22s var(--ease-premium), filter 0.22s var(--ease-premium);
    animation: card-enter 0.36s var(--ease-premium) both;
    will-change: transform, box-shadow;
}

.vehicle-card::after,
.movement-card::after,
.history-day-card::after {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, rgba(148, 163, 184, 0.16), transparent 80%);
}

.vehicle-card.active::after {
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.9), transparent 80%);
}

.vehicle-card.frequent::after {
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.9), transparent 80%);
}

.vehicle-card.search::after {
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.84), transparent 80%);
}

.vehicle-inline-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 10px;
}

.vehicle-inline-company {
    min-width: 0;
    font-size: clamp(1rem, 3.9vw, 1.15rem);
    line-height: 1.15;
}

.vehicle-inline-status {
    justify-self: center;
    min-width: 78px;
    padding-inline: 12px;
}

.vehicle-driver-line {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: clamp(0.88rem, 3.3vw, 0.98rem);
    line-height: 1.35;
}

.vehicle-card:active,
.movement-card:active,
.history-day-card:active {
    transform: scale(0.988);
    opacity: 0.96;
    box-shadow: 0 10px 18px rgba(2, 6, 23, 0.22);
}

.card:active,
.user-card:active {
    transform: scale(0.988);
    opacity: 0.97;
}

.clickable-card {
    cursor: pointer;
}

.clickable-card:focus-visible {
    outline: 2px solid rgba(96, 165, 250, 0.68);
    outline-offset: 2px;
}

.vehicle-card-header,
.history-day-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.vehicle-main,
.movement-main {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.vehicle-main h3,
.movement-company {
    margin: 0;
    font-size: clamp(1.03rem, 4vw, 1.22rem);
    line-height: 1.18;
}

.vehicle-main p,
.movement-driver {
    margin: 0;
    color: var(--muted);
    font-size: clamp(0.92rem, 3.5vw, 1rem);
}

.plate-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 82px;
    min-height: 36px;
    padding: 8px 11px;
    border-radius: 14px;
    border: 1px solid rgba(59, 130, 246, 0.3);
    background: rgba(59, 130, 246, 0.14);
    color: #DBEAFE;
    font-size: clamp(0.82rem, 3vw, 0.92rem);
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: transform 0.18s var(--ease-snappy), background 0.22s var(--ease-premium), border-color 0.22s var(--ease-premium), color 0.22s var(--ease-premium), box-shadow 0.22s var(--ease-premium);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 8px 18px rgba(37, 99, 235, 0.08);
}

.vehicle-meta-grid,
.history-summary-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.meta-card,
.history-summary-item {
    padding: 12px;
    border-radius: 16px;
    border: 1px solid rgba(71, 85, 105, 0.5);
    background: rgba(30, 41, 59, 0.72);
    transition: transform 0.22s var(--ease-premium), box-shadow 0.22s var(--ease-premium), border-color 0.22s var(--ease-premium), background 0.22s var(--ease-premium);
    animation: list-enter 0.32s var(--ease-premium) both;
}

.meta-card span,
.history-summary-item span {
    display: block;
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.meta-card strong,
.history-summary-item strong {
    font-size: 0.95rem;
    line-height: 1.3;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag,
.type-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 32px;
    padding: 7px 10px;
    border-radius: 999px;
    font-size: clamp(0.74rem, 2.9vw, 0.84rem);
    font-weight: 800;
    transition: transform 0.18s var(--ease-snappy), background 0.22s var(--ease-premium), border-color 0.22s var(--ease-premium), color 0.22s var(--ease-premium), box-shadow 0.22s var(--ease-premium), filter 0.22s var(--ease-premium);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.status-inside,
.type-pill.entry {
    border: 1px solid rgba(16, 185, 129, 0.34);
    background: rgba(16, 185, 129, 0.17);
    color: #6EE7B7;
    box-shadow: var(--glow-green-soft);
}

.status-outside {
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: rgba(148, 163, 184, 0.12);
    color: #CBD5E1;
    box-shadow: 0 10px 22px rgba(71, 85, 105, 0.1);
}

.type-pill.exit {
    border: 1px solid rgba(239, 68, 68, 0.32);
    background: rgba(239, 68, 68, 0.15);
    color: #FCA5A5;
    box-shadow: var(--glow-red-soft);
}

.tag.note {
    border: 1px solid rgba(59, 130, 246, 0.32);
    background: rgba(59, 130, 246, 0.14);
    color: #BFDBFE;
    box-shadow: var(--glow-blue-soft);
}

.tag.warn {
    border: 1px solid rgba(245, 158, 11, 0.36);
    background: rgba(245, 158, 11, 0.16);
    color: #FCD34D;
    box-shadow: var(--glow-amber-soft);
}

.card-action-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card-action-row form {
    margin: 0;
}

.vehicle-card.compact-card .card-action-row {
    gap: 8px;
}

.vehicle-card.compact-card {
    padding: 11px 12px;
    border-color: #2A3346;
    background: linear-gradient(180deg, rgba(26, 35, 50, 0.98) 0%, rgba(19, 28, 42, 0.92) 100%);
}

.vehicle-card.compact-card .vehicle-main {
    gap: 4px;
}

.vehicle-card.compact-card .vehicle-main h3 {
    font-size: clamp(1rem, 3.9vw, 1.12rem);
}

.vehicle-card.compact-card .vehicle-main p {
    font-size: clamp(0.88rem, 3.3vw, 0.97rem);
}

.vehicle-card.compact-card .plate-chip {
    min-height: 32px;
    min-width: 74px;
    padding: 6px 10px;
    border-radius: 13px;
    font-size: clamp(0.8rem, 2.9vw, 0.9rem);
}

.vehicle-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.vehicle-card-footer.compact-footer {
    justify-content: flex-end;
    margin-top: 10px;
}

.compact-action-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.compact-action-row .action-chip {
    width: auto;
    min-height: 40px;
    padding: 9px 13px;
    border-radius: 14px;
    font-size: clamp(13px, 3.2vw, 14px);
}

.compact-action-row .action-chip span[aria-hidden="true"] {
    font-size: 0.98rem;
    line-height: 1;
}

.action-icon-link,
.action-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 14px;
    border: 1px solid rgba(71, 85, 105, 0.72);
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    font-size: 18px;
    line-height: 1;
}

.action-icon-link.history {
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.98) 0%, rgba(15, 23, 42, 0.98) 100%);
    color: #BFDBFE;
}

.action-icon-btn.entry {
    color: #FFFFFF;
}

.action-icon-btn.exit {
    color: #FFFFFF;
}

.action-icon-btn {
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.icon-action-form {
    margin: 0;
}

.frequent-card-layout {
    display: grid;
    gap: 8px;
}

.frequent-company {
    min-width: 0;
    font-size: clamp(1rem, 3.9vw, 1.1rem);
    line-height: 1.15;
}

.frequent-driver {
    margin: 0;
    color: #CBD5E1;
    font-size: clamp(0.9rem, 3.2vw, 0.98rem);
    font-weight: 500;
    text-align: left;
}

.frequent-bottomline {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
}

.frequent-support {
    display: grid;
    justify-items: start;
    gap: 6px;
    min-width: 0;
}

.frequent-chevron {
    align-self: center;
    color: #94A3B8;
    font-size: 1.45rem;
    line-height: 1;
    transition: transform 0.16s ease, color 0.16s ease;
}

.clickable-card:focus-visible .frequent-chevron {
    color: #DBEAFE;
    transform: translateX(2px);
}

.vehicle-detail-card {
    padding: 14px;
    border-color: #2A3346;
    background: linear-gradient(180deg, rgba(26, 35, 50, 0.98) 0%, rgba(19, 27, 40, 0.96) 100%);
}

.vehicle-detail-top {
    margin-bottom: 2px;
}

.vehicle-detail-driver {
    margin-top: 6px;
}

.vehicle-detail-tags {
    margin-top: 8px;
}

.tag-action-form {
    margin: 0;
}

.tag-action-btn {
    cursor: pointer;
    transition: transform 0.16s ease, filter 0.2s ease, box-shadow 0.2s ease;
}

.tag-action-btn:active {
    transform: scale(0.97);
    opacity: 0.9;
}

.vehicle-detail-meta-grid {
    margin-top: 10px;
}

.vehicle-detail-card .meta-card {
    padding: 10px 12px;
    border-color: rgba(71, 85, 105, 0.42);
    background: rgba(15, 23, 42, 0.54);
}

.vehicle-detail-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.vehicle-detail-actions > form,
.vehicle-detail-actions > a {
    width: 100%;
}

.vehicle-detail-actions .action-chip,
.vehicle-detail-actions .action-chip-link {
    min-height: 48px;
    border-radius: 16px;
    font-size: clamp(13px, 3.2vw, 15px);
    white-space: nowrap;
}

.vehicle-action-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 16px;
}

.vehicle-action-slot {
    width: 100%;
    margin: 0;
}

.vehicle-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 52px;
    padding: 0 16px;
    border: 1px solid transparent;
    border-radius: 14px;
    color: #FFFFFF;
    font-size: clamp(14px, 3.4vw, 16px);
    font-weight: 600;
    letter-spacing: 0.01em;
    text-decoration: none;
    box-shadow: 0 12px 20px rgba(2, 6, 23, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    transition: transform 0.16s ease, filter 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}

.vehicle-action-btn .icon {
    font-size: 1.04rem;
    line-height: 1;
}

.vehicle-action-btn.enter {
    background: linear-gradient(135deg, #10B981, #059669);
    color: #FFFFFF;
    box-shadow: 0 12px 20px rgba(16, 185, 129, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.vehicle-action-btn.exit {
    background: linear-gradient(135deg, #EF4444, #DC2626);
    color: #FFFFFF;
    box-shadow: 0 12px 20px rgba(239, 68, 68, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.vehicle-action-btn.edit {
    background: linear-gradient(135deg, #3B82F6, #2563EB);
    color: #FFFFFF;
    box-shadow: 0 12px 20px rgba(59, 130, 246, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.vehicle-action-btn.delete {
    background: linear-gradient(135deg, #F97316, #DC2626);
    color: #FFFFFF;
    box-shadow: 0 12px 20px rgba(249, 115, 22, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.vehicle-action-btn.is-disabled,
.vehicle-action-btn[aria-disabled="true"] {
    opacity: 0.68;
    filter: saturate(0.88) brightness(0.92);
    cursor: not-allowed;
    box-shadow: 0 8px 16px rgba(2, 6, 23, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.vehicle-action-btn:active {
    transform: scale(0.97);
    opacity: 0.9;
}

.movement-card {
    display: grid;
    gap: 14px;
}

.section-headline-with-action {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.btn-inline {
    width: auto;
    min-width: 156px;
    white-space: nowrap;
}

.users-page {
    gap: 16px;
}

.admin-page {
    gap: 16px;
}

.users-hero-card,
.users-feedback-card,
.user-form-card {
    gap: 16px;
}

.users-hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.users-hero-stats .info-pill {
    min-height: 32px;
    padding: 7px 12px;
}

.users-single-card,
.admin-form-card {
    gap: 16px;
}

.admin-action-row,
.admin-form-actions {
    display: grid;
    gap: 10px;
}

.user-form,
.user-editor-form,
.user-password-form,
.user-delete-form {
    gap: 14px;
}

.users-list-card {
    gap: 16px;
}

.user-list {
    display: grid;
    gap: 14px;
}

.user-card {
    display: grid;
    gap: 14px;
    padding: 16px;
    border-radius: 22px;
    border: 1px solid #334155;
    background: linear-gradient(145deg, rgba(17, 24, 39, 0.98), rgba(30, 41, 59, 0.95));
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    transition: transform 0.22s var(--ease-premium), box-shadow 0.22s var(--ease-premium), border-color 0.22s var(--ease-premium), background 0.22s var(--ease-premium), filter 0.22s var(--ease-premium);
    animation: card-enter 0.38s var(--ease-premium) both;
}

.user-card-summary {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: start;
}

.user-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    color: #FFFFFF;
    font-size: 1.35rem;
    font-weight: 800;
    box-shadow: var(--shadow-sm);
}

.user-avatar.role-superadmin {
    background: linear-gradient(180deg, rgba(147, 51, 234, 0.98) 0%, rgba(107, 33, 168, 0.98) 100%);
}

.user-avatar.role-admin {
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.98) 0%, rgba(29, 78, 216, 0.98) 100%);
}

.user-avatar.role-supervisor {
    background: linear-gradient(180deg, rgba(245, 158, 11, 0.98) 0%, rgba(217, 119, 6, 0.98) 100%);
}

.user-avatar.role-operador {
    background: linear-gradient(180deg, rgba(16, 185, 129, 0.98) 0%, rgba(5, 150, 105, 0.98) 100%);
}

.user-main {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.user-name {
    font-size: clamp(1rem, 4vw, 1.18rem);
    line-height: 1.15;
}

.user-email {
    color: #CBD5E1;
    font-size: clamp(0.92rem, 3.4vw, 1rem);
    word-break: break-word;
}

.user-meta {
    color: var(--muted);
    font-size: clamp(0.84rem, 3vw, 0.94rem);
    line-height: 1.35;
}

.user-side {
    display: grid;
    gap: 8px;
    justify-items: end;
    min-width: 92px;
}

.user-toggle-form {
    display: grid;
    gap: 8px;
    justify-items: end;
    margin: 0;
}

.user-status-indicator {
    font-size: 0.84rem;
    font-weight: 700;
    line-height: 1;
}

.user-status-indicator.is-active {
    color: #6EE7B7;
}

.user-status-indicator.is-inactive {
    color: #94A3B8;
}

.switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 30px;
    flex-shrink: 0;
    will-change: transform;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: #334155;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 999px;
    transition:
        background-color 0.28s var(--ease-premium),
        border-color 0.28s var(--ease-premium),
        box-shadow 0.28s var(--ease-premium),
        transform 0.2s var(--ease-snappy);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.slider::before {
    position: absolute;
    content: "";
    width: 24px;
    height: 24px;
    left: 3px;
    top: 3px;
    background-color: #FFFFFF;
    border-radius: 50%;
    transition:
        transform 0.28s var(--ease-premium),
        box-shadow 0.28s var(--ease-premium);
    box-shadow: 0 6px 12px rgba(2, 6, 23, 0.24);
}

.switch input:checked + .slider {
    background-color: #10B981;
    border-color: rgba(16, 185, 129, 0.34);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 0 0 4px rgba(16, 185, 129, 0.12);
}

.switch input:checked + .slider::before {
    transform: translateX(22px);
    box-shadow: 0 8px 14px rgba(5, 150, 105, 0.24);
}

.switch input:focus-visible + .slider {
    outline: 2px solid rgba(16, 185, 129, 0.45);
    outline-offset: 2px;
}

.switch:active .slider {
    transform: scale(0.985);
}

.user-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.user-card-actions form {
    margin: 0;
    display: flex;
}

.user-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 14px;
    border-radius: 14px;
    border: 1px solid rgba(71, 85, 105, 0.68);
    background: rgba(11, 18, 32, 0.78);
    color: var(--text);
    font-size: 0.92rem;
    font-weight: 800;
    box-shadow: var(--shadow-sm);
    transition: transform 0.16s ease, filter 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.user-action-btn.edit {
    border-color: rgba(59, 130, 246, 0.34);
    background: rgba(59, 130, 246, 0.12);
    color: #DBEAFE;
}

.user-action-btn.edit[aria-expanded="true"] {
    border-color: rgba(59, 130, 246, 0.5);
    background: rgba(59, 130, 246, 0.18);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.user-action-btn.danger {
    border-color: rgba(239, 68, 68, 0.46);
    background: rgba(239, 68, 68, 0.12);
    color: #FCA5A5;
}

.user-action-btn:active {
    transform: scale(0.97);
    opacity: 0.9;
}

.user-action-btn:hover,
.user-action-btn:focus-visible {
    filter: brightness(1.05);
}

.field-hint {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 0.82rem;
}

.tarjeta-control-panel {
    display: grid;
    gap: 14px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(71, 85, 105, 0.28);
}

.tarjeta-control-head {
    display: grid;
    gap: 10px;
}

.tarjeta-control-head h2 {
    margin: 0;
}

.tarjeta-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.tarjeta-status-badge,
.tarjeta-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    max-width: 100%;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1.2;
}

.tarjeta-level-green {
    color: #6EE7B7;
    background: rgba(16, 185, 129, 0.16);
    border-color: rgba(16, 185, 129, 0.35);
}

.tarjeta-level-blue {
    color: #93C5FD;
    background: rgba(59, 130, 246, 0.16);
    border-color: rgba(59, 130, 246, 0.35);
}

.tarjeta-level-yellow {
    color: #FCD34D;
    background: rgba(245, 158, 11, 0.16);
    border-color: rgba(245, 158, 11, 0.35);
}

.tarjeta-level-orange {
    color: #FDBA74;
    background: rgba(249, 115, 22, 0.16);
    border-color: rgba(249, 115, 22, 0.35);
}

.tarjeta-level-red {
    color: #FCA5A5;
    background: rgba(239, 68, 68, 0.16);
    border-color: rgba(239, 68, 68, 0.35);
}

.tarjeta-incident-form textarea {
    min-height: 88px;
}

.tarjeta-ranking-list {
    display: grid;
    gap: 14px;
}

.tarjeta-ranking-card {
    display: grid;
    gap: 14px;
    padding: 16px;
    border-radius: 22px;
    border: 1px solid rgba(71, 85, 105, 0.5);
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.88) 0%, rgba(15, 23, 42, 0.92) 100%);
    box-shadow: var(--shadow-md);
}

.tarjeta-ranking-main {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}

.tarjeta-avatar {
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.92) 0%, rgba(37, 99, 235, 0.92) 100%);
}

.tarjeta-ranking-copy {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.tarjeta-ranking-top {
    margin-bottom: 0;
}

.tarjeta-ranking-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    color: var(--muted);
    font-size: 0.88rem;
}

.tarjeta-ranking-actions {
    display: flex;
    justify-content: flex-end;
}

@media (min-width: 720px) {
    .tarjeta-control-head {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
    }

    .tarjeta-ranking-card {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
    }

    .tarjeta-ranking-actions {
        justify-content: flex-start;
    }
}

.user-edit-panel {
    display: grid;
    gap: 14px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(71, 85, 105, 0.34);
}

.user-edit-panel[hidden] {
    display: none !important;
}

.user-edit-panel-head {
    display: grid;
    gap: 4px;
}

.user-edit-panel-head h3 {
    margin: 0;
    font-size: clamp(1rem, 3.8vw, 1.08rem);
}

.user-edit-panel-head p {
    margin: 0;
    color: var(--muted);
    font-size: clamp(0.86rem, 3.1vw, 0.94rem);
}

.user-switch-field,
.switch-field {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 76px;
    padding: 14px 16px;
    border-radius: 20px;
    border: 1px solid rgba(71, 85, 105, 0.62);
    background: rgba(11, 18, 32, 0.52);
}

.user-switch-copy,
.switch-copy {
    display: grid;
    gap: 4px;
}

.user-switch-copy strong,
.switch-copy strong {
    font-size: 1rem;
}

.user-switch-copy span,
.switch-copy span {
    color: var(--muted);
    font-size: 0.94rem;
}

.user-delete-form {
    margin: 0;
}

.plant-list {
    display: grid;
    gap: 14px;
}

.plant-card {
    display: grid;
    gap: 14px;
    padding: 16px;
    border-radius: 22px;
    border: 1px solid #334155;
    background: linear-gradient(145deg, rgba(17, 24, 39, 0.98), rgba(30, 41, 59, 0.95));
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.plant-card-main {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: start;
}

.plant-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.98) 0%, rgba(29, 78, 216, 0.98) 100%);
    color: #FFFFFF;
    font-size: 1.35rem;
    font-weight: 800;
    box-shadow: var(--shadow-sm);
}

.plant-copy {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.plant-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.plant-card-actions form {
    margin: 0;
    display: flex;
}

.movement-leading {
    display: flex;
    align-items: center;
    gap: 12px;
}

.movement-hour {
    min-width: 54px;
    font-size: 1.16rem;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.movement-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid rgba(71, 85, 105, 0.52);
    background: rgba(11, 18, 32, 0.74);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.movement-icon.entry {
    border-color: rgba(16, 185, 129, 0.34);
    background: rgba(16, 185, 129, 0.16);
    color: #6EE7B7;
}

.movement-icon.exit {
    border-color: rgba(239, 68, 68, 0.34);
    background: rgba(239, 68, 68, 0.16);
    color: #FCA5A5;
}

.movement-icon svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.movement-topline,
.movement-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}

.movement-note,
.movement-secondary {
    color: var(--muted);
    font-size: 0.84rem;
}

.movement-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.history-day-header h3 {
    font-size: 1.03rem;
    line-height: 1.28;
}

.history-day-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    border: 1px solid rgba(59, 130, 246, 0.28);
    background: rgba(59, 130, 246, 0.12);
    color: #BFDBFE;
    font-size: 1.15rem;
    font-weight: 800;
}

.history-list {
    margin-top: 12px;
}

.history-entry {
    display: grid;
    gap: 10px;
    padding: 12px;
    border-radius: 16px;
    border: 1px solid rgba(71, 85, 105, 0.44);
    background: rgba(11, 18, 32, 0.5);
}

.history-entry-time {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: clamp(0.86rem, 3.1vw, 0.94rem);
}

.vehicle-empty,
.movement-empty {
    padding: 16px;
    border-radius: 18px;
    border: 1px dashed rgba(71, 85, 105, 0.72);
    background: rgba(11, 18, 32, 0.42);
    color: var(--muted);
    text-align: center;
}

.index-dashboard {
    gap: 14px;
}

.dashboard-glass-card {
    position: relative;
    overflow: hidden;
    padding: 16px;
    border-radius: 28px;
    border: 1px solid rgba(71, 85, 105, 0.54);
    background:
        linear-gradient(180deg, rgba(30, 41, 59, 0.92) 0%, rgba(15, 23, 42, 0.88) 100%);
    box-shadow:
        0 18px 36px rgba(2, 6, 23, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.dashboard-glass-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(191, 219, 254, 0.24), transparent 68%);
    pointer-events: none;
}

.dashboard-hero-card {
    display: grid;
    gap: 16px;
    background:
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.16), transparent 28%),
        linear-gradient(180deg, rgba(24, 35, 56, 0.96) 0%, rgba(15, 23, 42, 0.92) 100%);
}

.dashboard-hero-top,
.dashboard-section-head,
.dashboard-hero-copy,
.dashboard-search-copy,
.dashboard-active-main,
.dashboard-frequent-top {
    display: grid;
    gap: 8px;
}

.dashboard-hero-top {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 14px;
}

.dashboard-hero-copy {
    min-width: 0;
}

.dashboard-hero-subtitle {
    margin: 0;
    max-width: 34ch;
    color: var(--muted);
    font-size: clamp(14px, 3.5vw, 17px);
    line-height: 1.5;
}

.dashboard-hero-menu {
    align-self: start;
}

.dashboard-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.dashboard-chip {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(71, 85, 105, 0.6);
    background: rgba(11, 18, 32, 0.54);
    color: #E5EEF9;
    font-size: clamp(12px, 2.9vw, 14px);
    font-weight: 700;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.dashboard-primary-actions {
    display: grid;
    gap: 10px;
}

.dashboard-primary-btn,
.dashboard-secondary-btn {
    min-height: 50px;
    border-radius: 18px;
}

.dashboard-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.dashboard-stat-card {
    display: grid;
    align-content: center;
    gap: 10px;
    min-height: 94px;
    padding: 12px 10px;
    border-radius: 20px;
    border: 1px solid rgba(71, 85, 105, 0.52);
    background: linear-gradient(180deg, rgba(11, 18, 32, 0.76) 0%, rgba(15, 23, 42, 0.9) 100%);
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.dashboard-stat-card strong {
    font-size: clamp(1.5rem, 5vw, 1.9rem);
    line-height: 1;
    letter-spacing: -0.03em;
}

.dashboard-stat-card.is-inside {
    border-color: rgba(16, 185, 129, 0.34);
}

.dashboard-stat-card.is-inside strong {
    color: #34D399;
}

.dashboard-stat-card.is-entry {
    border-color: rgba(59, 130, 246, 0.34);
}

.dashboard-stat-card.is-entry strong {
    color: #60A5FA;
}

.dashboard-stat-card.is-exit {
    border-color: rgba(239, 68, 68, 0.32);
}

.dashboard-stat-card.is-exit strong {
    color: #F87171;
}

.dashboard-stat-label {
    color: var(--muted);
    font-size: clamp(11px, 2.8vw, 13px);
    font-weight: 800;
    letter-spacing: 0.04em;
}

.dashboard-search-shell {
    display: grid;
    gap: 10px;
}

.dashboard-search-submit {
    min-height: 50px;
}

.dashboard-section {
    display: grid;
    gap: 14px;
}

.dashboard-section-head h2 {
    margin: 0;
}

.dashboard-search-grid,
.dashboard-active-grid,
.dashboard-frequent-grid {
    display: grid;
    gap: 12px;
}

.dashboard-search-card,
.dashboard-active-card,
.dashboard-frequent-card {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    border: 1px solid #2B3A53;
    background:
        linear-gradient(180deg, rgba(10, 20, 36, 0.96) 0%, rgba(14, 25, 43, 0.92) 100%);
    box-shadow: 0 14px 24px rgba(2, 6, 23, 0.18);
}

.dashboard-search-card::before,
.dashboard-active-card::before,
.dashboard-frequent-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.08), transparent 70%);
    pointer-events: none;
}

.dashboard-search-card,
.dashboard-frequent-card {
    padding: 14px;
}

.dashboard-active-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
}

.dashboard-search-card-top,
.dashboard-search-bottom,
.dashboard-frequent-middle {
    display: grid;
    gap: 10px;
}

.dashboard-search-card-top {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
}

.dashboard-search-bottom {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    margin-top: 12px;
}

.dashboard-search-copy,
.dashboard-active-main,
.dashboard-frequent-top {
    min-width: 0;
}

.dashboard-search-copy h3,
.dashboard-active-main h3,
.dashboard-frequent-top h3 {
    margin: 0;
    font-size: clamp(1rem, 3.8vw, 1.16rem);
    line-height: 1.12;
}

.dashboard-search-copy p,
.dashboard-active-main p,
.dashboard-frequent-top p {
    margin: 0;
    color: var(--muted);
    font-size: clamp(0.88rem, 3.2vw, 0.98rem);
    line-height: 1.32;
}

.dashboard-search-side,
.dashboard-active-side {
    display: grid;
    justify-items: end;
    gap: 10px;
}

.dashboard-search-badges,
.dashboard-inline-badge-row,
.dashboard-frequent-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.dashboard-search-actions,
.dashboard-active-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.dashboard-action-form {
    margin: 0;
}

.dashboard-action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.94rem;
    line-height: 1;
}

.dashboard-search-link,
.dashboard-search-cta,
.dashboard-active-action,
.dashboard-frequent-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 10px 14px;
    border-radius: 14px;
    font-size: clamp(0.82rem, 3vw, 0.92rem);
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    box-shadow: 0 10px 18px rgba(2, 6, 23, 0.18);
    transition: transform 0.14s ease, box-shadow 0.14s ease, opacity 0.14s ease, background 0.14s ease, border-color 0.14s ease, color 0.14s ease;
}

.dashboard-search-link,
.dashboard-active-action.is-neutral {
    border: 1px solid rgba(71, 85, 105, 0.76);
    background: rgba(15, 23, 42, 0.76);
    color: #E2E8F0;
}

.dashboard-search-cta.is-entry,
.dashboard-frequent-cta.is-entry {
    border: 1px solid rgba(16, 185, 129, 0.42);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.98), rgba(5, 150, 105, 0.98));
    color: #FFFFFF;
}

.dashboard-search-cta.is-exit,
.dashboard-active-action.is-exit,
.dashboard-frequent-cta.is-exit {
    border: 1px solid rgba(239, 68, 68, 0.42);
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.98), rgba(220, 38, 38, 0.98));
    color: #FFFFFF;
}

.dashboard-active-action.is-neutral:hover,
.dashboard-search-link:hover {
    border-color: rgba(96, 165, 250, 0.3);
}

.dashboard-active-action {
    min-height: 38px;
    padding-inline: 12px;
}

.dashboard-frequent-card {
    display: grid;
    gap: 12px;
}

.dashboard-frequent-top,
.dashboard-frequent-middle {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
}

.dashboard-frequent-top p {
    justify-self: end;
    text-align: right;
}

.dashboard-frequent-middle .plate-chip {
    justify-self: end;
}

.dashboard-frequent-bottom {
    display: flex;
}

.dashboard-frequent-bottom .dashboard-action-form,
.dashboard-frequent-bottom .dashboard-frequent-cta {
    width: 100%;
}

.dashboard-frequent-cta {
    min-height: 46px;
    width: 100%;
}

.dashboard-search-card:active,
.dashboard-active-card:active,
.dashboard-frequent-card:active,
.dashboard-search-link:active,
.dashboard-search-cta:active,
.dashboard-active-action:active,
.dashboard-frequent-cta:active {
    transform: scale(0.985);
}

.dashboard-active-card .plate-chip,
.dashboard-frequent-card .plate-chip,
.dashboard-search-card .plate-chip {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.dashboard-search-card .plate-chip,
.dashboard-frequent-card .plate-chip {
    min-width: 88px;
}

@media (max-width: 420px) {
    .dashboard-glass-card {
        padding: 14px;
        border-radius: 24px;
    }

    .dashboard-chip-row {
        gap: 7px;
    }

    .dashboard-chip {
        padding-inline: 10px;
        font-size: 12px;
    }

    .dashboard-summary-grid {
        gap: 8px;
    }

    .dashboard-stat-card {
        min-height: 88px;
        padding: 10px 8px;
    }

    .dashboard-active-card {
        grid-template-columns: minmax(0, 1fr);
    }

    .dashboard-active-side {
        width: 100%;
        grid-template-columns: minmax(0, 1fr);
        justify-items: stretch;
    }

    .dashboard-active-actions {
        justify-content: flex-start;
    }

    .dashboard-search-bottom {
        grid-template-columns: 1fr;
        align-items: stretch;
    }
}

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

    .dashboard-search-shell {
        grid-template-columns: minmax(0, 1fr) 170px;
        align-items: end;
    }

    .dashboard-search-shell .filter-field {
        align-content: end;
    }

    .dashboard-search-submit {
        align-self: end;
    }
}

@media (min-width: 900px) {
    .index-dashboard {
        gap: 16px;
    }

    .dashboard-glass-card {
        padding: 18px;
    }

    .dashboard-search-grid,
    .dashboard-frequent-grid,
    .dashboard-active-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (hover: hover) and (pointer: fine) {
.dashboard-search-card:hover,
.dashboard-active-card:hover,
.dashboard-frequent-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 20px 30px rgba(2, 6, 23, 0.22);
    border-color: rgba(71, 85, 105, 0.74);
}
}

body.index-screen {
    background:
        radial-gradient(circle at top left, rgba(59, 130, 246, 0.22), transparent 26%),
        radial-gradient(circle at 85% 0%, rgba(16, 185, 129, 0.14), transparent 28%),
        linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
}

.index-screen .app-container {
    width: min(100%, var(--page-max));
    max-width: var(--page-max);
    margin: 0 auto;
    padding: 0 0 118px;
    box-sizing: border-box;
}

.index-screen.has-bottom-nav .app-container {
    padding-bottom: calc(118px + env(safe-area-inset-bottom, 0px));
}

.index-screen .panel-card,
.index-screen .section-card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.96) 0%, rgba(18, 32, 54, 0.98) 100%);
    border: 1px solid rgba(71, 85, 105, 0.68);
    border-radius: var(--radius-xl);
    padding: 18px;
    margin-bottom: 0;
    box-shadow: var(--shadow-lg);
    box-sizing: border-box;
}

.index-screen .panel-card::before,
.index-screen .section-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(148, 163, 184, 0.22), transparent 65%);
    pointer-events: none;
}

.index-screen .panel-card {
    overflow: visible;
    background:
        radial-gradient(circle at top left, rgba(59, 130, 246, 0.12), transparent 24%),
        linear-gradient(180deg, rgba(30, 41, 59, 0.96) 0%, rgba(18, 32, 54, 0.98) 100%);
    padding: 20px;
}

.index-screen .section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #7DD3FC;
    font-size: 13px;
    letter-spacing: 0.16em;
    font-weight: 800;
    text-transform: uppercase;
}

.index-screen .section-kicker::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--blue);
    box-shadow: 0 0 0 6px rgba(59, 130, 246, 0.15);
}

.index-screen h1,
.index-screen h2,
.index-screen h3,
.index-screen p {
    margin-top: 0;
}

.index-screen h1 {
    margin-bottom: 8px;
    font-size: clamp(2rem, 7vw, 2.45rem);
    line-height: 1.03;
    letter-spacing: -0.04em;
}

.index-screen h2 {
    margin-bottom: 8px;
    font-size: clamp(1.55rem, 5vw, 1.9rem);
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.index-screen .panel-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: start;
}

.index-screen .panel-head-copy {
    min-width: 0;
}

.index-screen .panel-head-copy p,
.index-screen .section-text {
    margin: 0;
    color: #94A3B8;
    font-size: clamp(14px, 3.7vw, 17px);
    line-height: 1.55;
}

.index-screen .panel-settings {
    position: relative;
}

.index-screen .panel-settings-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.84);
    color: #E2E8F0;
    font-size: 1.55rem;
    box-shadow: 0 12px 24px rgba(2, 6, 23, 0.22);
}

.index-screen .panel-settings-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 30;
    display: none;
    min-width: 232px;
    padding: 6px;
    border-radius: 20px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(15, 23, 42, 0.96);
    box-shadow: 0 22px 34px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.index-screen .panel-settings-menu.show {
    display: block;
}

.index-screen .panel-settings-menu a {
    display: block;
    padding: 12px 14px;
    border-radius: 14px;
    color: #E2E8F0;
    font-size: 0.94rem;
    font-weight: 700;
}

.index-screen .panel-settings-menu form {
    margin: 0;
}

.index-screen .panel-settings-menu button {
    display: block;
    width: 100%;
    padding: 12px 14px;
    border: 0;
    border-radius: 14px;
    background: transparent;
    color: #E2E8F0;
    font-size: 0.94rem;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
}

.index-screen .panel-settings-menu a:hover,
.index-screen .panel-settings-menu a:focus-visible,
.index-screen .panel-settings-menu button:hover,
.index-screen .panel-settings-menu button:focus-visible {
    background: rgba(59, 130, 246, 0.14);
}

.index-screen .user-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0 14px;
}

.index-screen .chip {
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 999px;
    padding: 8px 12px;
    font-weight: 700;
    font-size: 14px;
}

.index-screen .panel-actions {
    display: grid;
    gap: 10px;
}

.index-screen .dashboard-main {
    width: 100%;
}

.index-screen .dashboard-layout {
    display: grid;
    gap: 18px;
}

.index-screen .primary-btn,
.index-screen .secondary-btn,
.index-screen .search-btn,
.index-screen .enter-btn,
.index-screen .icon-action-btn {
    width: 100%;
    min-height: 46px;
    border: 0;
    border-radius: 16px;
    font-weight: 800;
    font-size: 15px;
    color: white;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 12px 20px rgba(2, 6, 23, 0.16);
    transition: transform 0.14s ease, box-shadow 0.14s ease, opacity 0.14s ease, background 0.14s ease, border-color 0.14s ease;
}

.index-screen .primary-btn {
    background: linear-gradient(135deg, #10B981, #059669);
}

.index-screen .secondary-btn {
    background: linear-gradient(135deg, #1E293B, #0F172A);
    border: 1px solid rgba(148, 163, 184, 0.22);
}

.index-screen .search-btn {
    background: linear-gradient(135deg, #3B82F6, #2563EB);
}

.index-screen .enter-btn {
    background: linear-gradient(135deg, #10B981, #059669);
}

.index-screen .exit-enter-btn {
    background: linear-gradient(135deg, #EF4444, #DC2626);
}

.index-screen .summary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 16px 0;
}

.index-screen .summary-card {
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 18px;
    padding: 12px 8px;
    text-align: center;
}

.index-screen .summary-card .label {
    display: block;
    font-size: 12px;
    color: #94A3B8;
    font-weight: 700;
}

.index-screen .summary-card .number {
    display: block;
    margin-top: 8px;
    font-size: clamp(1.55rem, 5vw, 1.9rem);
    font-weight: 900;
    line-height: 1;
}

.index-screen .summary-card.is-inside .number {
    color: #34D399;
}

.index-screen .summary-card.is-entry .number {
    color: #60A5FA;
}

.index-screen .summary-card.is-exit .number {
    color: #F87171;
}

.index-screen .search-box {
    background: rgba(15, 23, 42, 0.68);
    border: 1px solid rgba(71, 85, 105, 0.5);
    border-radius: 20px;
    padding: 14px;
}

.index-screen .search-form {
    display: grid;
    gap: 0;
}

.index-screen .search-form label {
    margin-bottom: 8px;
}

.index-screen .search-box input {
    width: 100%;
    box-sizing: border-box;
    min-height: 48px;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: #020617;
    color: #E2E8F0;
    padding: 0 16px;
    font-size: 16px;
    margin-bottom: 12px;
}

.index-screen .vehicles-list,
.index-screen .frequents-list,
.index-screen .search-results-list {
    display: grid;
    gap: 12px;
    margin-top: 14px;
}

.index-screen .index-vehicle-card,
.index-screen .index-frequent-card {
    min-height: auto;
    width: 100%;
}

.index-screen .empty-state {
    border: 1px dashed rgba(148, 163, 184, 0.28);
    border-radius: 18px;
    padding: 16px;
    color: #94A3B8;
    text-align: center;
    margin-top: 14px;
    background: rgba(2, 6, 23, 0.34);
}

.index-screen .home-action-form {
    margin: 0;
}

.index-screen .index-vehicle-card .vehicle-card-footer,
.index-screen .index-frequent-card .vehicle-card-footer {
    margin-top: 10px;
}

.index-screen .index-frequent-tags {
    margin-top: 10px;
}

.index-screen .app-footer-card {
    padding-block: 16px;
}

.index-screen .app-footer-card p {
    margin: 0;
    color: rgba(226, 232, 240, 0.72);
    font-size: clamp(11px, 2.7vw, 12px);
    font-weight: 700;
    text-align: center;
    line-height: 1.5;
}

.index-screen .panel-settings-btn:active,
.index-screen .primary-btn:active,
.index-screen .secondary-btn:active,
.index-screen .search-btn:active,
.index-screen .enter-btn:active,
.index-screen .icon-action-btn:active,
.index-screen .vehicle-card:active,
.index-screen .frequent-card:active {
    transform: scale(0.985);
}

@media (hover: hover) and (pointer: fine) {
    .index-screen .panel-settings-btn:hover,
    .index-screen .primary-btn:hover,
    .index-screen .secondary-btn:hover,
    .index-screen .search-btn:hover,
    .index-screen .enter-btn:hover {
        filter: brightness(1.04);
    }

    .index-screen .index-vehicle-card:hover,
    .index-screen .index-frequent-card:hover {
        transform: translateY(-1px);
        box-shadow: 0 16px 28px rgba(0, 0, 0, 0.28);
    }
}

@media (max-width: 380px) {
    .index-screen .app-container {
        padding-bottom: 112px;
    }

    .index-screen .panel-card,
    .index-screen .section-card {
        padding: 16px;
        border-radius: 22px;
    }

    .index-screen .summary-grid {
        gap: 8px;
    }

    .index-screen .summary-card {
        padding-inline: 6px;
    }

    .index-screen .vehicle-inline-top {
        gap: 8px;
    }
}

@media (min-width: 900px) {
    .index-screen .app-container {
        max-width: 1250px;
        padding: 40px 48px 150px;
    }

    .index-screen.has-bottom-nav .app-container {
        padding-bottom: calc(150px + env(safe-area-inset-bottom, 0px));
    }

    .index-screen .dashboard-main {
        max-width: 820px;
        margin: 0 auto 32px;
    }

    .index-screen .dashboard-layout {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 32px;
        align-items: start;
    }

    .index-screen .dashboard-layout > .section-card {
        margin-bottom: 0;
        min-height: 420px;
    }

    .index-screen .dashboard-layout + .app-footer-card {
        margin-top: 28px;
    }

    .index-screen .search-results-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }

    .index-screen .index-vehicle-card,
    .index-screen .index-frequent-card {
        padding: 16px;
        min-height: 120px;
    }

    .index-screen .index-vehicle-card .vehicle-inline-company,
    .index-screen .index-frequent-card .vehicle-inline-company {
        font-size: 1.14rem;
    }

    .index-screen .index-vehicle-card .vehicle-driver-line,
    .index-screen .index-frequent-card .vehicle-driver-line {
        font-size: 0.98rem;
    }

    .index-screen .index-vehicle-card .plate-chip,
    .index-screen .index-frequent-card .plate-chip {
        min-width: 90px;
        min-height: 38px;
        padding: 8px 12px;
        font-size: 0.9rem;
    }

    .index-screen .index-vehicle-card .compact-action-row .action-chip,
    .index-screen .index-frequent-card .compact-action-row .action-chip {
        min-height: 42px;
        padding: 10px 14px;
    }

    .index-screen .index-vehicle-card .action-icon-link {
        width: 42px;
        height: 42px;
    }

    .index-screen.has-bottom-nav .bottom-nav {
        left: 50%;
        right: auto;
        width: min(calc(100% - 48px), 720px);
        transform: translateX(-50%);
        bottom: 24px;
        padding-left: 0;
        padding-right: 0;
    }

    .index-screen.has-bottom-nav .bottom-nav-inner {
        width: 100%;
    }
}

.message,
.error {
    padding: 13px 14px;
    margin-bottom: 18px;
    border-radius: 16px;
    font-weight: 700;
}

.message {
    border: 1px solid rgba(16, 185, 129, 0.35);
    background: rgba(16, 185, 129, 0.16);
    color: #A7F3D0;
}

.error {
    border: 1px solid rgba(239, 68, 68, 0.35);
    background: rgba(239, 68, 68, 0.14);
    color: #FECACA;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.92rem;
    font-weight: 700;
}

.text-link.subtle {
    color: #BFDBFE;
}

.field-hint {
    display: block;
    margin-top: 2px;
    color: #94A3B8;
    font-size: 0.82rem;
    line-height: 1.4;
}

.brand-lockup {
    display: grid;
    justify-items: center;
    gap: 14px;
    margin-bottom: 6px;
}

.app-logo {
    display: block;
    width: 120px;
    max-width: 40%;
    height: auto;
    margin: 18px auto 24px;
    border-radius: 24px;
    box-shadow: 0 18px 32px rgba(2, 6, 23, 0.22);
}

.app-logo-login {
    width: 140px;
    max-width: 45%;
    margin: 0 auto 24px;
}

.brand-mark,
.about-illustration {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 78px;
    height: 78px;
    margin: 0 auto;
    border-radius: 24px;
    border: 1px solid rgba(59, 130, 246, 0.34);
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.96) 0%, rgba(11, 18, 32, 0.94) 100%);
    box-shadow: 0 18px 32px rgba(30, 64, 175, 0.18);
}

.brand-mark svg,
.about-illustration svg {
    width: 38px;
    height: 38px;
    fill: none;
    stroke: #60A5FA;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.about-card {
    width: 100%;
    max-width: 460px;
    padding: 24px 20px;
}

.about-body {
    display: grid;
    gap: 14px;
    text-align: center;
}

.about-block {
    display: grid;
    gap: 4px;
    padding: 12px 14px;
    border-radius: 18px;
    border: 1px solid rgba(71, 85, 105, 0.5);
    background: rgba(11, 18, 32, 0.48);
}

.auth-card {
    width: 100%;
    padding: 24px 20px;
}

.floating-toast {
    position: fixed;
    left: 50%;
    bottom: calc(122px + env(safe-area-inset-bottom, 0px));
    z-index: 60;
    min-width: 200px;
    padding: 12px 16px;
    border-radius: 16px;
    border: 1px solid rgba(59, 130, 246, 0.28);
    background: rgba(11, 18, 32, 0.96);
    color: var(--text);
    font-size: 0.92rem;
    font-weight: 800;
    text-align: center;
    transform: translate(-50%, 18px);
    opacity: 0;
    transition: opacity 0.18s ease, transform 0.18s ease;
    box-shadow: var(--shadow-lg);
}

.floating-toast.success {
    border-color: rgba(16, 185, 129, 0.34);
    color: #D1FAE5;
}

.floating-toast.error {
    border-color: rgba(239, 68, 68, 0.34);
    color: #FECACA;
}

.floating-toast.warn {
    border-color: rgba(245, 158, 11, 0.34);
    color: #FDE68A;
}

.floating-toast.show {
    transform: translate(-50%, 0);
    opacity: 1;
}

.app-footer {
    width: min(100%, 640px);
    margin: 4px auto 0;
    padding: 2px 8px;
    color: rgba(226, 232, 240, 0.58);
    font-size: clamp(10px, 2.5vw, 12px);
    font-weight: 600;
    line-height: 1.45;
    text-align: center;
}

.app-footer span {
    display: block;
}

body.has-bottom-nav .app-footer {
    margin-bottom: calc(86px + env(safe-area-inset-bottom, 0px));
}

.bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    padding:
        0
        calc(var(--page-pad) + env(safe-area-inset-right, 0px))
        calc(10px + env(safe-area-inset-bottom, 0px))
        calc(var(--page-pad) + env(safe-area-inset-left, 0px));
}

.bottom-nav-inner {
    width: min(100%, 640px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
    padding: 8px;
    min-height: var(--nav-height);
    border-radius: 26px;
    border: 1px solid rgba(71, 85, 105, 0.58);
    background: rgba(11, 18, 32, 0.94);
    box-shadow: 0 -8px 28px rgba(2, 6, 23, 0.34), 0 14px 30px rgba(2, 6, 23, 0.28);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 70px;
    padding: 8px 4px;
    border-radius: 18px;
    color: var(--muted);
    text-decoration: none;
    transition: transform 0.16s ease, background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.bottom-nav .nav-icon {
    display: block;
    min-width: 24px;
    min-height: 24px;
    font-size: clamp(20px, 5vw, 22px);
    line-height: 1;
    color: currentColor;
    opacity: 1;
    transition: transform 0.18s ease, color 0.2s ease;
}

.bottom-nav .nav-label {
    display: block;
    font-size: clamp(11px, 2.8vw, 12px);
    line-height: 1;
    font-weight: 700;
    color: currentColor;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.bottom-nav .nav-item.active {
    color: #DBEAFE;
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.22) 0%, rgba(30, 64, 175, 0.16) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 14px 20px rgba(30, 64, 175, 0.18), 0 0 0 1px rgba(59, 130, 246, 0.18);
}

.bottom-nav .nav-item.active .nav-icon,
.bottom-nav .nav-item.active .nav-label {
    color: #ffffff;
}

.bottom-nav .nav-item.active .nav-icon {
    transform: translateY(-2px);
}

.bottom-nav .nav-item:active {
    transform: scale(0.96);
    opacity: 0.88;
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
}

.badge.inside {
    border: 1px solid rgba(16, 185, 129, 0.34);
    background: rgba(16, 185, 129, 0.16);
    color: #6EE7B7;
}

.badge.outside {
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: rgba(148, 163, 184, 0.12);
    color: #CBD5E1;
}

.search-row {
    display: grid;
    gap: 10px;
    grid-template-columns: 1fr auto;
}

.table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 12px 10px;
    border-bottom: 1px solid rgba(71, 85, 105, 0.3);
    text-align: center;
}

th {
    color: #BFDBFE;
    font-size: 0.77rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

tr:nth-child(even) td {
    background: rgba(255, 255, 255, 0.02);
}

@media (max-width: 520px) {
    .section-headline-with-action {
        align-items: stretch;
    }

    .btn-inline {
        width: 100%;
    }

    .user-card-summary {
        grid-template-columns: auto minmax(0, 1fr);
        grid-template-areas:
            "avatar main"
            "side side";
    }

    .user-avatar {
        grid-area: avatar;
    }

    .user-main {
        grid-area: main;
    }

    .user-side {
        grid-area: side;
        grid-template-columns: 1fr auto;
        align-items: center;
        justify-items: stretch;
        min-width: 0;
    }

    .user-toggle-form {
        width: 100%;
        grid-template-columns: 1fr auto;
        align-items: center;
        justify-items: start;
    }

    .user-card-actions {
        justify-content: stretch;
    }

    .user-card-actions > .user-action-btn,
    .user-card-actions form {
        flex: 1 1 calc(50% - 4px);
    }

    .user-card-actions > .user-action-btn,
    .user-card-actions form .user-action-btn {
        width: 100%;
    }

    .plant-card-main {
        grid-template-columns: auto minmax(0, 1fr);
        grid-template-areas:
            "avatar main"
            "side side";
    }

    .plant-avatar {
        grid-area: avatar;
    }

    .plant-copy {
        grid-area: main;
    }

    .plant-card .user-side {
        grid-area: side;
        grid-template-columns: 1fr auto;
        align-items: center;
        justify-items: stretch;
        min-width: 0;
    }

    .plant-card-actions {
        justify-content: stretch;
    }

    .plant-card-actions > .user-action-btn,
    .plant-card-actions form {
        flex: 1 1 calc(50% - 4px);
    }

    .plant-card-actions > .user-action-btn,
    .plant-card-actions form .user-action-btn {
        width: 100%;
    }
}

@media (hover: hover) and (pointer: fine) {
    .btn:hover,
    .action-chip:hover,
    .action-chip-link:hover,
    .menu-toggle:hover,
    .icon-btn:hover,
    .user-action-btn:hover,
    .vehicle-action-btn:hover,
    .tag-action-btn:hover {
        filter: brightness(1.04);
        transform: translateY(-1px);
        box-shadow: 0 16px 28px rgba(2, 6, 23, 0.22);
    }

    .filter-pill:hover,
    .tag:hover,
    .type-pill:hover,
    .plate-chip:hover {
        transform: translateY(-1px);
        filter: brightness(1.04);
    }

    .card:hover,
    .vehicle-card:hover,
    .movement-card:hover,
    .history-day-card:hover,
    .user-card:hover,
    .plant-card:hover,
    .meta-card:hover,
    .history-summary-item:hover,
    .stat:hover,
    .item:hover {
        transform: translateY(-2px);
        box-shadow: 0 22px 38px rgba(2, 6, 23, 0.32);
    }

    .clickable-card:hover .frequent-chevron {
        color: #DBEAFE;
        transform: translateX(2px);
    }
}

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

    .topbar {
        grid-template-columns: 1fr auto;
        align-items: start;
    }

    .quick-actions,
    .form-row,
    .two-columns,
    .movement-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .search-grid {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: end;
    }

    .vehicle-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .movement-card {
        grid-template-columns: auto 1fr;
        align-items: start;
    }

    .history-summary-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .user-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 900px) {
    body {
        padding-left: max(24px, calc(var(--page-pad) + env(safe-area-inset-left, 0px)));
        padding-right: max(24px, calc(var(--page-pad) + env(safe-area-inset-right, 0px)));
    }

    .hero-card,
    .section-card,
    .card {
        padding: 20px;
    }

    .vehicle-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .user-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

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